Skip to content

Commit

Permalink
Upload junit to codecov (#8800)
Browse files Browse the repository at this point in the history
(cherry picked from commit 17bf912)
  • Loading branch information
Dreamsorcerer authored and patchback[bot] committed Aug 20, 2024
1 parent ae15bac commit 72dfad5
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 @@ -196,7 +196,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 @@ -232,6 +232,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 @@ -167,7 +167,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 72dfad5

Please sign in to comment.