Skip to content

Commit 17bf912

Browse files
Upload junit to codecov (#8800)
1 parent 1745ed4 commit 17bf912

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
PIP_USER: 1
213213
run: >-
214214
PATH="${HOME}/Library/Python/3.11/bin:${HOME}/.local/bin:${PATH}"
215-
pytest
215+
pytest --junitxml=junit.xml
216216
shell: bash
217217
- name: Re-run the failing tests with maximum verbosity
218218
if: failure()
@@ -248,6 +248,12 @@ jobs:
248248
steps.python-install.outputs.python-version
249249
}}
250250
token: ${{ secrets.CODECOV_TOKEN }}
251+
- name: Upload test results to Codecov
252+
if: ${{ !cancelled() }}
253+
uses: codecov/test-results-action@v1
254+
with:
255+
fail_ci_if_error: true
256+
token: ${{ secrets.CODECOV_TOKEN }}
251257

252258
check: # This job does nothing and is only used for the branch protection
253259
if: always()

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ junit_suite_name = aiohttp_test_suite
165165
norecursedirs = dist docs build .tox .eggs
166166
minversion = 3.8.2
167167
testpaths = tests/
168-
junit_family=xunit2
169168
xfail_strict = true
170169
markers =
171170
dev_mode: mark test to run in dev mode.

0 commit comments

Comments
 (0)