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:
159
159
run : |
160
160
echo $GITHUB_RUN_ID
161
161
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
163
164
164
165
- name : Statistics
165
166
if : success()
Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ jobs:
196
196
run : |
197
197
echo $GITHUB_RUN_ID
198
198
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
200
201
201
202
- name : Statistics
202
203
if : success()
@@ -205,6 +206,12 @@ jobs:
205
206
coverage report
206
207
coverage xml
207
208
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
+
208
215
- name : Upload coverage to Codecov
209
216
uses : codecov/codecov-action@v5
210
217
# see: https://github.com/actions/toolkit/issues/399
You can’t perform that action at this time.
0 commit comments