Skip to content

Commit 0f86695

Browse files
committed
testo
1 parent f9941c3 commit 0f86695

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,33 @@ 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 --break-system-packages
2329
run: >
24-
sudo apt update
30+
pip install -r requirements.txt --break-system-packages
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
3344
run: >
3445
sudo apt -y install python3-pip
3546
shell: bash
3647

37-
- name: pip install -r requirements.txt --break-system-packages
48+
- name: pip install -r requirements.txt
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
4551
shell: bash

0 commit comments

Comments
 (0)