diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5335bba..9aae6e4 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -55,3 +55,9 @@ jobs: uses: codecov/codecov-action@v4.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} + + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 05e06e2..336feae 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ build **coverage** **version **scannerwork** +**.xml diff --git a/pyproject.toml b/pyproject.toml index 9ac7aa0..602a89e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,8 +106,7 @@ warn_unused_configs = true pythonpath = ["esxport"] [tool.pytest.ini_options] -addopts = "--cov=. --cov-report=xml --cov-report term-missing --ff -x --no-cov-on-fail --emoji --dist loadgroup --tx=4*popen" - +addopts = "--cov=. --cov-report=xml --cov-report=term-missing --junitxml=junit.xml --ff -x --no-cov-on-fail --emoji --dist loadgroup --tx=4*popen" [tool.coverage.run] #branch = true #https://github.com/nedbat/coveragepy/issues/605 parallel = true