Skip to content

Commit 8ea5226

Browse files
Apply suggestions from code review
Co-authored-by: Felix Fontein <[email protected]>
1 parent cf32489 commit 8ea5226

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/sanity-tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ jobs:
1818
matrix:
1919
include:
2020
- name: latest Ansible 5 release
21-
options: '-e galaxy_requirements="{{ playbook_dir | dirname }}/5/galaxy-requirements.yaml"'
21+
ansible_major: 5
22+
ansible_core: 2.12
23+
ansible_core_next: 2.13
2224
- name: latest Ansible 6 release
23-
options: '-e galaxy_requirements="{{ playbook_dir | dirname }}/6/galaxy-requirements.yaml"'
25+
ansible_major: 6
26+
ansible_core: 2.13
27+
ansible_core_next: 2.14
2428

2529
steps:
2630
- name: Check out ansible-build-data
@@ -33,12 +37,12 @@ jobs:
3337
with:
3438
python-version: 3.9
3539

36-
- name: Install dependencies
40+
- name: Install ansible-core ${{ matrix.ansible_core }}
3741
run: |
3842
python3 -m pip install --upgrade pip
39-
python3 -m pip install ansible-core
43+
python3 -m pip install ansible-core>=${{ matrix.ansible_core }},${{ matrix.ansible_core_next }}
4044
4145
- name: "Run sanity tests for ${{ matrix.name }}"
4246
run: |
43-
ansible-playbook -vv tests/collection-tests.yaml ${{ matrix.options }}
47+
ansible-playbook -vv tests/collection-tests.yaml -e 'galaxy_requirements="{{ playbook_dir | dirname }}/${{ matrix.ansible_major }}/galaxy-requirements.yaml"'
4448
working-directory: ansible-build-data

0 commit comments

Comments
 (0)