From 544e97ff6dbfdcd0980f435afbfa234761366edb Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 25 Nov 2021 21:15:45 +0100 Subject: [PATCH] Also collect coverage during sanity tests. (#59) (#60) (cherry picked from commit 656c115697766128378b60d1c57601c1b40be585) Co-authored-by: Felix Fontein --- .github/workflows/ansible-test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index e891933..4b7b386 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -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) #