Skip to content

Commit 1dcb95d

Browse files
committed
CI: Codecov
1 parent e04acbe commit 1dcb95d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,7 @@ jobs:
171171
- name: Run tests
172172
run: tools/ci/check.sh
173173
if: ${{ matrix.check != 'skiptests' }}
174+
- uses: codecov/codecov-action@v1
175+
with:
176+
file: for_testing/coverage.xml
177+
if: ${{ always() }}

tools/ci/check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ elif [ "${CHECK_TYPE}" == "test" ]; then
2424
mkdir for_testing
2525
cd for_testing
2626
cp ../.coveragerc .
27-
pytest --doctest-modules --doctest-plus --cov nibabel -v --pyargs nibabel
27+
pytest --doctest-modules --doctest-plus --cov nibabel --cov-report xml \
28+
-v --pyargs nibabel
2829
else
2930
false
3031
fi

0 commit comments

Comments
 (0)