Skip to content

Commit 0c497ab

Browse files
authored
Merge pull request #348 from effigies/ci/fix_codecov
CI: Use supported codecov uploaders
2 parents 86d85e6 + 981035f commit 0c497ab

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.circleci/config.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ _pull_from_registry: &pull_from_registry
4242
4343
version: 2.1
4444
orbs:
45-
docker: circleci/[email protected]
45+
docker: circleci/[email protected]
46+
codecov: codecov/[email protected]
4647

4748
jobs:
4849
cache_test_data:
@@ -343,15 +344,9 @@ jobs:
343344
- store_test_results:
344345
path: /tmp/tests
345346

346-
- run:
347-
name: Submit unit test coverage
348-
working_directory: /tmp/src/sdcflows
349-
command: |
350-
export PY3=$( pyenv versions | awk '/^\* 3/ { print $2 }' )
351-
pyenv local $PY3
352-
python3 -m pip install codecov
353-
python3 -m codecov --file /tmp/tests/unittests.xml \
354-
--flags unittests -e CIRCLE_JOB
347+
- codecov/upload:
348+
file: /tmp/tests/unittests.xml
349+
flags: unittests
355350

356351
build_docs:
357352
docker:

.github/workflows/unittests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
export PATH=$ANTSPATH:${AFNI_HOME}:/usr/lib/fsl/5.0:$PATH
184184
pytest -v --cov sdcflows --cov-report xml:cov.xml --doctest-modules sdcflows
185185
186-
- name: Submit code coverage
187-
run: |
188-
pip install codecov
189-
python -m codecov --flags travis --file cov.xml -e $GITHUB_RUN_NUMBER
186+
- uses: codecov/codecov-action@v3
187+
with:
188+
file: cov.xml
189+
if: ${{ always() }}

0 commit comments

Comments
 (0)