From 8ff817dc52e571aa9d37b24db21a71767352354b Mon Sep 17 00:00:00 2001 From: Alex Welsh Date: Mon, 12 Jan 2026 10:02:46 +0000 Subject: [PATCH] Fix package sync on new Noble runners --- .github/actions/setup/action.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index d3b0e705..2f2e7e0b 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -13,17 +13,19 @@ inputs: runs: using: composite steps: - - uses: actions/setup-python@v5 - with: - python-version: 3.11.x - # Cache Python dependencies - cache: pip - name: Preparing Vault password file run: | echo "${{ inputs.vault-password }}" > "${{ inputs.vault-password-file }}" shell: bash + # Install python dependencies for ansible server side + - uses: actions/setup-python@v6 + with: + python-version: 3.11.x + # Cache Python dependencies + cache: pip + - name: Install Python dependencies run: | pip install -r requirements.txt @@ -33,3 +35,18 @@ runs: run: | ansible-galaxy collection install -r requirements.yml -p ansible/collections shell: bash + + # Install python dependencies for ansible client side + - name: Install pip + run: | + sudo apt update + sudo apt -y install python3-pip + shell: bash + + # NOTE(Alex-Welsh): This isn't the most elegant solution but there probably + # isn't a better way unless we start specifying ansible_python_interpreter + # everywhere. It's fine for CI purposes. + - name: Install Python dependencies + run: | + /usr/bin/python3 -m pip install setuptools --break-system-packages + shell: bash