diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fb53cbe..5759caa 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -128,7 +128,12 @@ jobs: run: | uv --no-progress run -- pytest - - name: Codecov upload + - name: Codecov - coverage uses: codecov/codecov-action@v5.1.2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Codecov - test results + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/changelog.md b/changelog.md index d06aff9..7e76989 100644 --- a/changelog.md +++ b/changelog.md @@ -14,6 +14,7 @@ - Do not call all detection heuristics on module import. Instead, call them lazily when needed. - Make URLs required on all platforms. - Invite users in error messages and logs to contribute back edge-cases to improve detection heuristics. +- Upload test results to coverage. ## [1.7.0 (2024-12-02)](https://github.com/kdeldycke/extra-platforms/compare/v1.6.0...v1.7.0) diff --git a/pyproject.toml b/pyproject.toml index 2f15103..180c788 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,6 +94,8 @@ addopts = [ "--cov-precision=2", "--cov-report=term", "--cov-report=xml", + "--junitxml=junit.xml", + "--override-ini=junit_family=legacy", ] # Make sure tests that are expected to fail do not resurect and start working all of a sudden. xfail_strict = true