Skip to content

Commit

Permalink
Upload junit to codecov (#8800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Aug 20, 2024
1 parent 1745ed4 commit 17bf912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
PIP_USER: 1
run: >-
PATH="${HOME}/Library/Python/3.11/bin:${HOME}/.local/bin:${PATH}"
pytest
pytest --junitxml=junit.xml
shell: bash
- name: Re-run the failing tests with maximum verbosity
if: failure()
Expand Down Expand Up @@ -248,6 +248,12 @@ jobs:
steps.python-install.outputs.python-version
}}
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

check: # This job does nothing and is only used for the branch protection
if: always()
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ junit_suite_name = aiohttp_test_suite
norecursedirs = dist docs build .tox .eggs
minversion = 3.8.2
testpaths = tests/
junit_family=xunit2
xfail_strict = true
markers =
dev_mode: mark test to run in dev mode.
Expand Down

0 comments on commit 17bf912

Please sign in to comment.