chore(deps): update actions/setup-python action to v5 #91
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test role container_status | |
"on": | |
workflow_dispatch: | |
push: | |
paths: | |
- '.github/workflows/test-role-container_status.yml' | |
- 'molecule/delegated/*' | |
- 'molecule/container_status/**' | |
- 'roles/container_status/**' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- '.github/workflows/test-role-container_status.yml' | |
- 'molecule/delegated/*' | |
- 'molecule/container_status/**' | |
- 'roles/container_status/**' | |
jobs: | |
test-role-container_status: | |
runs-on: ubuntu-latest | |
env: | |
ANSIBLE_ROLE: container_status | |
strategy: | |
max-parallel: 4 | |
matrix: | |
ansible-version: ['8.4.0'] | |
python-version: ['3.10'] | |
docker-image: ['ubuntu:22.04'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
# NOTE: Technically, Molecule supports variable interpolation in molecule.yml. | |
# For reasons that are not really comprehensible, however, it does not | |
# work here. Hence this workaround. | |
- name: Prepare molecule.yml | |
run: | | |
sed -i "s/\${DOCKER_IMAGE}/${{ matrix.docker-image }}/g" molecule/delegated/molecule.yml | |
sed -i "s/\${ANSIBLE_ROLE}/${{ env.ANSIBLE_ROLE }}/g" molecule/delegated/molecule.yml | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r molecule/requirements.txt | |
python3 -m pip install ansible~=${{ matrix.ansible-version }} | |
- name: Run molecule | |
run: molecule test -s delegated | |
- name: Cleanup molecule | |
run: molecule destroy -s delegated | |
if: ${{ always() }} |