ci: test ansible-test action
All checks were successful
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
pull-requests-open / Run tests (pull_request) Successful in 1m50s

This commit is contained in:
Bertrand Lanson 2024-09-14 21:09:31 +02:00
parent 29675007db
commit a0e45be691
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
2 changed files with 10 additions and 18 deletions

View File

@ -41,22 +41,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: pip3 install -r tests/requirements.txt
shell: bash
working-directory: ${{ gitea.workspace }}
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup testing environment
run: ansible-galaxy collection install ${{ gitea.workspace }}
shell: bash
working-directory: ${{ gitea.workspace }}
- name: Run ansible unit tests
run: ansible-test units --coverage
shell: bash
working-directory: ${{ gitea.workspace }}
- name: Print coverage informations
run: ansible-test coverage report
shell: bash
working-directory: ${{ gitea.workspace }}
- name: Run unit tests
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: stable-2.14
target-python-version: 3.10
testing-type: units