Skip to content

Commit

Permalink
Use new codecov method to upload coverage (#1069)
Browse files Browse the repository at this point in the history
* Use new codecov method to upload coverage

* Remove codecov from requirements

* Fix runner for different OSs
  • Loading branch information
fepegar committed Apr 16, 2023
1 parent eeeef74 commit 0933def
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ jobs:
fetch-depth: 0

- name: Install tox
run: pip install tox codecov
run: pip install tox

- name: Run unit tests
run: tox -e py

- name: Upload coverage
run: codecov
- name: Upload coverage reports to Codecov
run: |
OS_LOWERCASE=$(echo $RUNNER_OS | tr '[:upper:]' '[:lower:]')
curl -Os https://uploader.codecov.io/latest/${OS_LOWERCASE}/codecov
chmod +x codecov
./codecov
cli:
name: CLI smoke tests
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ dev =
%(plot)s
black
bump2version
codecov
coverage
flake8
mypy
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ commands =
pytest \
--durations=0 \
--capture=no \
--cov=torchio \
--cov-report=xml
--cov=torchio

[testenv:mypy]
deps = mypy
Expand Down

0 comments on commit 0933def

Please sign in to comment.