Also collect coverage during sanity tests. (#59) (#60)

(cherry picked from commit 656c115697)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2021-11-25 21:15:45 +01:00 committed by GitHub
parent 508713fca6
commit 544e97ff6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,9 +56,19 @@ jobs:
# The docker container has all the pinned dependencies that are required
# and all python versions ansible supports.
- name: Run sanity tests
run: ansible-test sanity --docker -v --color
run: ansible-test sanity --docker -v --color --coverage
working-directory: ./ansible_collections/community/routeros
# ansible-test support producing code coverage date
- name: Generate coverage report
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
working-directory: ./ansible_collections/community/routeros
# See the reports at https://codecov.io/gh/ansible_collections/ansible-collections/community.routeros
- uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false
###
# Unit tests (OPTIONAL)
#