Skip to content

Commit c8ac8a3

Browse files
committed
Fix package sync on new Noble runners
1 parent 805b3d2 commit c8ac8a3

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/actions/setup/action.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ inputs:
1313
runs:
1414
using: composite
1515
steps:
16-
- uses: actions/setup-python@v5
17-
with:
18-
python-version: 3.11.x
19-
# Cache Python dependencies
20-
cache: pip
2116

2217
- name: Preparing Vault password file
2318
run: |
2419
echo "${{ inputs.vault-password }}" > "${{ inputs.vault-password-file }}"
2520
shell: bash
2621

22+
# Install python dependencies for ansible server side
23+
- uses: actions/setup-python@v6
24+
with:
25+
python-version: 3.11.x
26+
# Cache Python dependencies
27+
cache: pip
28+
2729
- name: Install Python dependencies
2830
run: |
2931
pip install -r requirements.txt
@@ -33,3 +35,18 @@ runs:
3335
run: |
3436
ansible-galaxy collection install -r requirements.yml -p ansible/collections
3537
shell: bash
38+
39+
# Install python dependencies for ansible client side
40+
- name: Install pip
41+
run: |
42+
sudo apt update
43+
sudo apt -y install python3-pip
44+
shell: bash
45+
46+
# NOTE(Alex-Welsh): This isn't the most elegant solution but there probably
47+
# isn't a better way unless we start specifying ansible_python_interpreter
48+
# everywhere. It's fine for CI purposes.
49+
- name: Install Python dependencies
50+
run: |
51+
/usr/bin/python3 -m pip install setuptools --break-system-packages
52+
shell: bash

0 commit comments

Comments
 (0)