File tree Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 51
51
- name : Run tests
52
52
run : tools/ci/check.sh
53
53
if : ${{ matrix.check != 'skiptests' }}
54
- - uses : codecov/codecov-action@v1
55
- with :
56
- file : for_testing/coverage.xml
54
+ - name : Submit coverage
55
+ run : tools/ci/submit_coverage.sh
57
56
if : ${{ always() }}
58
57
- name : Upload pytest test results
59
58
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 74
74
- name : Run tests
75
75
run : tools/ci/check.sh
76
76
if : ${{ matrix.check != 'skiptests' }}
77
- - uses : codecov/codecov-action@v1
78
- with :
79
- file : for_testing/coverage.xml
77
+ - name : Submit coverage
78
+ run : tools/ci/submit_coverage.sh
80
79
if : ${{ always() }}
81
80
- name : Upload pytest test results
82
81
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -117,9 +117,8 @@ jobs:
117
117
- name : Run tests
118
118
run : tools/ci/check.sh
119
119
if : ${{ matrix.check != 'skiptests' }}
120
- - uses : codecov/codecov-action@v1
121
- with :
122
- file : for_testing/coverage.xml
120
+ - name : Submit coverage
121
+ run : tools/ci/submit_coverage.sh
123
122
if : ${{ always() }}
124
123
- name : Upload pytest test results
125
124
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change 59
59
coverage
60
60
pytest !=5.3.4
61
61
pytest-cov
62
- pytest-doctestplus
62
+ pytest-doctestplus !=0.9.0
63
63
all =
64
64
%(dicomfs)s
65
65
%(dev)s
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo Submitting coverage
4
+
5
+ source tools/ci/activate.sh
6
+
7
+ set -eu
8
+
9
+ set -x
10
+
11
+ COVERAGE_FILE=" for_testing/coverage.xml"
12
+
13
+ if [ -e " $COVERAGE_FILE " ]; then
14
+ # Pin codecov version to reduce scope for malicious updates
15
+ python -m pip install " codecov==2.1.11"
16
+ python -m codecov --file for_testing/coverage.xml
17
+ fi
18
+
19
+ set +eux
20
+
21
+ echo Done submitting coverage
You can’t perform that action at this time.
0 commit comments