diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index e542de8..92ce119 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -32,3 +32,9 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + + - name: Upload test results + if: ${{ !cancelled() }} + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + with: + report_type: test_results diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml index 19a45e5..4e144a1 100644 --- a/.github/workflows/tests-ubuntu.yml +++ b/.github/workflows/tests-ubuntu.yml @@ -38,3 +38,9 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + + - name: Upload test results + if: ${{ !cancelled() }} + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + with: + report_type: test_results diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 59241ed..f70f186 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -32,3 +32,9 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + + - name: Upload test results + if: ${{ !cancelled() }} + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 + with: + report_type: test_results diff --git a/.gitignore b/.gitignore index c276bd1..ab77cc2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ .idea htmlcov/ coverage.xml +*.junit.xml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..752d1a9 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + target: 100% + patch: false diff --git a/tox.ini b/tox.ini index a146bf4..0b0e4d7 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ deps = commands = pytest --cov=cssselect \ --cov-report=term-missing --cov-report=html --cov-report=xml \ + --junitxml=testenv.junit.xml -o junit_family=legacy \ {posargs: cssselect tests docs} [testenv:pylint]