From 85fbde0dc5de209798821cd9697ff26cb7b1bd95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Wed, 2 Oct 2024 12:22:24 +0200 Subject: [PATCH] Upload test report to codecov --- .github/workflows/codecov.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a823be9e..cc7293ea 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -31,9 +31,15 @@ jobs: - name: Generate coverage report run: | - pytest --hypothesis-profile ci tests --disable-warnings --cov=pyscal --cov-report=xml + pytest --hypothesis-profile ci tests --disable-warnings --cov=pyscal --cov-report=xml --junitxml=junit.xml -o junit_family=legacy - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Upload test report to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}