File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ jobs:
159159 run : |
160160 echo $GITHUB_RUN_ID
161161 python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \
162- -m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID
162+ -m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID \
163+ --junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results
163164
164165 - name : Statistics
165166 if : success()
Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ jobs:
196196 run : |
197197 echo $GITHUB_RUN_ID
198198 python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \
199- -m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID
199+ -m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID \
200+ --junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results
200201
201202 - name : Statistics
202203 if : success()
@@ -205,6 +206,12 @@ jobs:
205206 coverage report
206207 coverage xml
207208
209+ - name : Upload test results to Codecov
210+ if : ${{ !cancelled() }} # Run even if tests fail
211+ uses : codecov/test-results-action@v1
212+ with :
213+ token : ${{ secrets.CODECOV_TOKEN }}
214+
208215 - name : Upload coverage to Codecov
209216 uses : codecov/codecov-action@v5
210217 # see: https://github.com/actions/toolkit/issues/399
You can’t perform that action at this time.
0 commit comments