Skip to content

Commit

Permalink
report coverage even from failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Apr 6, 2023
1 parent 52573d0 commit 84fb44b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,15 @@ jobs:
ctest --timeout 1200 -V --output-junit=Testing/Test.xml --output-on-failure --no-compress-output -I ${{matrix.shard}},,${{matrix.shards}} -j${threads} ${{env.RouterCTestExtraArgs}}
- name: Process C Coverage
if: ${{ matrix.buildType == 'Coverage' }}
if: ${{ !cancelled() && matrix.buildType == 'Coverage' }}
working-directory: ${{env.RouterBuildDir}}
run: |
dnf install -y lcov
cmake --build . --target coverage
# https://github.com/codecov/codecov-action
- name: Upload C Coverage
if: ${{ matrix.buildType == 'Coverage' }}
if: ${{ !cancelled() && matrix.buildType == 'Coverage' }}
uses: codecov/codecov-action@v3
with:
flags: ${{matrix.covType}}tests
Expand All @@ -644,14 +644,14 @@ jobs:
working-directory: ${{github.workspace}}/skupper-router

- name: Process Python coverage
if: ${{ matrix.buildType == 'Coverage' }}
if: ${{ !cancelled() && matrix.buildType == 'Coverage' }}
run: |
coverage combine
coverage xml
working-directory: ${{env.RouterBuildDir}}/tests

- name: Upload Python Coverage
if: ${{ matrix.buildType == 'Coverage' }}
if: ${{ !cancelled() && matrix.buildType == 'Coverage' }}
uses: codecov/codecov-action@v3
with:
flags: py${{matrix.covType}}tests
Expand Down

0 comments on commit 84fb44b

Please sign in to comment.