ci: test ansible-test action
This commit is contained in:
parent
29675007db
commit
a0e45be691
@ -41,22 +41,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install requirements
|
- name: Setup python
|
||||||
run: pip3 install -r tests/requirements.txt
|
uses: actions/setup-python@v5
|
||||||
shell: bash
|
with:
|
||||||
working-directory: ${{ gitea.workspace }}
|
python-version: "3.10"
|
||||||
|
|
||||||
- name: Setup testing environment
|
- name: Run unit tests
|
||||||
run: ansible-galaxy collection install ${{ gitea.workspace }}
|
uses: ansible-community/ansible-test-gh-action@release/v1
|
||||||
shell: bash
|
with:
|
||||||
working-directory: ${{ gitea.workspace }}
|
ansible-core-version: stable-2.14
|
||||||
|
target-python-version: 3.10
|
||||||
- name: Run ansible unit tests
|
testing-type: units
|
||||||
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 }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user