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