Skip to content

Commit 8e53d69

Browse files
authored
Merge pull request #1224 from effigies/ci/codecov-mess
MNT: Fix CI codecov submission
2 parents d4cf55f + 9341c57 commit 8e53d69

File tree

5 files changed

+7
-29
lines changed

5 files changed

+7
-29
lines changed

.github/workflows/misc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ jobs:
5959
- name: Run tests
6060
run: tools/ci/check.sh
6161
if: ${{ matrix.check != 'skiptests' }}
62-
- name: Submit coverage
63-
run: tools/ci/submit_coverage.sh
64-
if: ${{ always() }}
6562
- name: Upload pytest test results
6663
uses: actions/upload-artifact@v3
6764
with:

.github/workflows/pre-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ jobs:
8787
- name: Run tests
8888
run: tools/ci/check.sh
8989
if: ${{ matrix.check != 'skiptests' }}
90-
- name: Submit coverage
91-
run: tools/ci/submit_coverage.sh
90+
- uses: codecov/codecov-action@v3
9291
if: ${{ always() }}
92+
with:
93+
files: cov.xml
9394
- name: Upload pytest test results
9495
uses: actions/upload-artifact@v3
9596
with:

.github/workflows/stable.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@ jobs:
181181
- name: Run tests
182182
if: ${{ matrix.check != 'skiptests' }}
183183
run: tools/ci/check.sh
184-
- name: Submit coverage
184+
- uses: codecov/codecov-action@v3
185185
if: ${{ always() }}
186-
run: tools/ci/submit_coverage.sh
186+
with:
187+
files: cov.xml
187188
- name: Upload pytest test results
188189
if: ${{ always() && matrix.check == 'test' }}
189190
uses: actions/upload-artifact@v3

tools/ci/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ elif [ "${CHECK_TYPE}" == "test" ]; then
2323
mkdir for_testing
2424
cd for_testing
2525
cp ../.coveragerc .
26-
pytest --doctest-modules --doctest-plus --cov nibabel --cov-report xml \
26+
pytest --doctest-modules --doctest-plus --cov nibabel --cov-report xml:../cov.xml \
2727
--junitxml=test-results.xml -v --pyargs nibabel -n auto
2828
elif [ "${CHECK_TYPE}" == "typing" ]; then
2929
mypy nibabel

tools/ci/submit_coverage.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)