Skip to content

feat: add ansible 2.15 and 2.18 to test matrix #365

feat: add ansible 2.15 and 2.18 to test matrix

feat: add ansible 2.15 and 2.18 to test matrix #365

Workflow file for this run

name: Tests
# Controls when the action will run.
'on':
pull_request:
push:
branches:
- master
jobs:
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible_version:
- "2.12"
- "2.15"
- "2.18"
python_version:
- "3.9"
- "3.11"
exclude:
- python_version: "3.9"
ansible_version: "2.18"
steps:
- name: Github Checkout 🛎
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python_version }} 🐍
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies 📦
run: |
pipx uninstall ansible-core
python3 -m pip install --upgrade pip
python3 -m pip install ansible-core==${{ matrix.ansible }}.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@c22434d887f0b8a5ac3ebda710664a027291e71c # yamllint disable-line rule:line-length
ansible-galaxy collection build
ansible-galaxy collection install *.tar.gz
- name: Run integration tests 🧪
run: |
ansible-playbook -i tests/inventory -v tests/*.yml -e ansible_python_interpreter=$(which python3)