ci: ansible-lint requires dependencies to be installed [citest_skip]

ansible-lint requires the dependencies in meta/collection-requirements.yml
and tests/collection-requirements.yml to be installed.  tox-lsr 3.18.1
will ensure they are installed.

Refactor the tests somewhat so that the collection and test steps are separate.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson
2026-04-09 17:16:38 -06:00
committed by Richard Megginson
parent cae72d8dd4
commit 19b462a7f8
4 changed files with 14 additions and 8 deletions
+6 -3
View File
@@ -47,15 +47,18 @@ jobs:
- name: Install tox, tox-lsr
run: |
set -euxo pipefail
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.0"
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.18.1"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.versions.python }}
- name: Convert role to collection format and run ansible-test
- name: Convert role to collection format
run: tox -e collection
- name: Run ansible-test
run: |
tox \
-x testenv:ansible-test-${{ matrix.versions.ansible }}.basepython="python${{ matrix.versions.python }}" \
-e collection,ansible-test-${{ matrix.versions.ansible }}
-e ansible-test-${{ matrix.versions.ansible }}