Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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