Skip to content

Commit 02311d0

Browse files
feat: add Codecov test results (#20694)
* feat: add Codecov test results * linter --------- Co-authored-by: Jirka B <j.borovec+github@gmail.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
1 parent 5e0209a commit 02311d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci-tests-fabric.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

.github/workflows/ci-tests-pytorch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)