Skip to content

Commit 53030ff

Browse files
committed
testo
1 parent f9941c3 commit 53030ff

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff 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
@@ -36,10 +47,5 @@ runs:
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

0 commit comments

Comments
 (0)