Skip to content

Commit 887c1e9

Browse files
move upload test results step alongside the codecov action step
1 parent 3c13d7f commit 887c1e9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/tests.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,6 @@ jobs:
338338
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes \
339339
--junitxml=junit.xml -o junit_family=legacy
340340
341-
- name: Upload test results to Codecov
342-
if: ${{ !cancelled() }} # Run even if tests fail
343-
uses: codecov/test-results-action@v1
344-
with:
345-
token: ${{ secrets.CODECOV_TOKEN }}
346-
os: ${{ matrix.codecov-test-results-action-os }}
347341
- name: Cleanup non-failed image files
348342
if: failure()
349343
run: |
@@ -400,6 +394,14 @@ jobs:
400394
xcrun llvm-cov export -format="lcov" build/*/src/*.so \
401395
-instr-profile default.profdata > info.lcov
402396
fi
397+
398+
- name: Upload test results to Codecov
399+
if: ${{ !cancelled() }} # Run even if tests fail
400+
uses: codecov/test-results-action@v1
401+
with:
402+
token: ${{ secrets.CODECOV_TOKEN }}
403+
os: ${{ matrix.codecov-test-results-action-os }}
404+
403405
- name: Upload code coverage
404406
if: ${{ !cancelled() && github.event_name != 'schedule' }}
405407
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0

0 commit comments

Comments
 (0)