Skip to content

Commit ab46acd

Browse files
committed
feat: add ansible 2.15 and 2.18 to test matrix
1 parent d75e16b commit ab46acd

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

.github/workflows/pull_request.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,28 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ansible:
16+
ansible_version:
1717
- "2.12"
18+
- "2.15"
19+
- "2.18"
20+
python_version:
21+
- "3.9"
22+
- "3.11"
23+
exclude:
24+
- python_version: "3.9"
25+
ansible_version: "2.18"
1826
steps:
19-
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
20-
- uses: actions/checkout@v3
27+
- name: Github Checkout 🛎
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Python ${{ matrix.python_version }} 🐍
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ matrix.python_version }}
2134

22-
- name: Install dependencies
23-
run: |
24-
pipx uninstall ansible-core
25-
python3 -m pip install --upgrade pip
26-
python3 -m pip install ansible-core==${{ matrix.ansible }}.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@stackhpc
27-
ansible-galaxy collection build
28-
ansible-galaxy collection install *.tar.gz
29-
30-
# TODO: Use ansible-test to run these.
31-
- name: Running integration tests
35+
- name: Install ansible-core 📦
36+
run: pip install ansible-core==${{ matrix.ansible_version }}.*
37+
38+
- name: Run integration tests 🧪
3239
run: |
3340
ansible-playbook -i tests/inventory -v tests/*.yml -e ansible_python_interpreter=$(which python3)

0 commit comments

Comments
 (0)