Skip to content

Commit 41bc358

Browse files
authored
Merge branch 'master' into dependabot/pip/patool-gte-1.12-and-lt-3.1
2 parents 0ffada1 + dd86dfa commit 41bc358

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
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

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Only for testing
22
beautifulsoup4>=4.8,<4.9
3-
coverage>=4.5,<4.6
3+
coverage>=4.5,<7.7
44
pytest
55
pytest-cov
66

0 commit comments

Comments
 (0)