File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,14 +19,25 @@ runs:
1919 echo "${{ inputs.vault-password }}" > "${{ inputs.vault-password-file }}"
2020 shell : bash
2121
22- - name : apt update
22+ - uses : actions/setup-python@v6
23+ with :
24+ python-version : 3.12.x
25+ # Cache Python dependencies
26+ cache : pip
27+
28+ - name : pip install -r requirements.txt
2329 run : >
24- sudo apt update
30+ pip install -r requirements.txt
31+ shell : bash
32+
33+ - name : Install Ansible collection dependencies
34+ run : |
35+ ansible-galaxy collection install -r requirements.yml -p ansible/collections
2536 shell : bash
2637
27- - name : sudo apt -y install python3
38+ - name : apt update
2839 run : >
29- sudo apt -y install python3
40+ sudo apt update
3041 shell : bash
3142
3243 - name : sudo apt -y install python3-pip
3647
3748 - name : pip install -r requirements.txt --break-system-packages
3849 run : >
39- pip install -r requirements.txt --break-system-packages
40- shell : bash
41-
42- - name : Install Ansible collection dependencies
43- run : |
44- ansible-galaxy collection install -r requirements.yml -p ansible/collections
50+ /usr/bin/python3 -m pip install -r requirements.txt --break-system-packages
4551 shell : bash
You can’t perform that action at this time.
0 commit comments