Skip to content

Commit dd86dfa

Browse files
authored
1 parent 80c7121 commit dd86dfa

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

_cms-test-internal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dropdb --host=testdb --username=postgres cmsdbfortesting
66
createdb --host=testdb --username=postgres cmsdbfortesting
77
cmsInitDB
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
1010
UNIT=$?
1111

1212
dropdb --host=testdb --username=postgres cmsdbfortesting

0 commit comments

Comments
 (0)