From 1a2a6f7bb61d65e82318a99b02a0acc558e237a5 Mon Sep 17 00:00:00 2001 From: Laure-di Date: Wed, 22 Oct 2025 17:14:53 +0200 Subject: [PATCH] ci: upload test results to codecov --- .github/workflows/pytest-cov.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest-cov.yml b/.github/workflows/pytest-cov.yml index 619b7b868..c59d9f466 100644 --- a/.github/workflows/pytest-cov.yml +++ b/.github/workflows/pytest-cov.yml @@ -35,8 +35,13 @@ jobs: - name: Install dependencies and library run: poetry install - name: Run tests with coverage - run: poetry run pytest --cov --cov-branch --cov-report=xml - - name: Upload coverage reports to Codecov + run: poetry run pytest --cov --junitxml=junit.xml -o junit_family=legacy + - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file