File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,26 @@ jobs:
2525 run : |
2626 docker compose -p cms -f docker-compose.test.yml run --rm testcms
2727
28- - uses : codecov/codecov-action@v4
29- env :
30- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
28+ - name : Upload test results to Codecov
29+ if : ${{ !cancelled() }}
30+ uses : codecov/test-results-action@v1
31+ with :
32+ files : ./codecov/junit.xml
33+ flags : unittests
34+ token : ${{ secrets.CODECOV_TOKEN }}
35+
36+ - name : Upload unit test coverage results to Codecov
37+ uses : codecov/codecov-action@v4
38+ if : ${{ !cancelled() }}
3139 with :
3240 files : ./codecov/unittests.xml
3341 flags : unittests
42+ token : ${{ secrets.CODECOV_TOKEN }}
3443
35- - uses : codecov/codecov-action@v4
36- env :
37- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
44+ - name : Upload functional test coverage results to Codecov
45+ uses : codecov/codecov-action@v4
46+ if : ${{ !cancelled() }}
3847 with :
3948 files : ./codecov/functionaltests.xml
4049 flags : functionaltests
50+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ dropdb --host=testdb --username=postgres cmsdbfortesting
66createdb --host=testdb --username=postgres cmsdbfortesting
77cmsInitDB
88
9- pytest --cov . --cov-report xml:codecov/unittests.xml
9+ pytest --cov . --cov-report xml:codecov/unittests.xml --junitxml=codecov/junit.xml -o junit_family=legacy
1010UNIT=$?
1111
1212dropdb --host=testdb --username=postgres cmsdbfortesting
You can’t perform that action at this time.
0 commit comments