Skip to content

Commit

Permalink
Switch to codecov (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
scasagrande committed Mar 29, 2022
1 parent b66cb62 commit f704663
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,14 @@ jobs:
env:
TOXENV: ${{ matrix.TOXENV }}
run: tox
- name: Submit to coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
github-token: ${{ secrets.github_token }}

coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
env:
TOXENV: ${{ matrix.TOXENV }}
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
env_vars: TOXENV
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
verbose: true
files: ./coverage.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pip-log.txt
.tox
nosetests.xml
.pytest_cache
coverage.xml

#Translations
*.mo
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ InstrumentKit
:target: https://github.com/instrumentkit/InstrumentKit
:alt: Github Actions build status

.. image:: https://img.shields.io/coveralls/instrumentkit/InstrumentKit/main.svg?maxAge=2592000
:target: https://coveralls.io/github/instrumentkit/InstrumentKit?branch=main
:alt: Coveralls code coverage
.. image:: https://codecov.io/gh/instrumentkit/InstrumentKit/branch/main/graph/badge.svg?token=Q2wcdW3t4A
:target: https://codecov.io/gh/instrumentkit/InstrumentKit
:alt: Codecov code coverage

.. image:: https://readthedocs.org/projects/instrumentkit/badge/?version=latest
:target: https://readthedocs.org/projects/instrumentkit/?badge=latest
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ isolated_build = true
extras = dev
deps =
numpy: numpy
commands = pytest -n auto --cov=instruments {toxinidir}/instruments/tests/ {posargs:}
commands = pytest -n auto --cov=instruments --cov-report=xml {toxinidir}/instruments/tests/ {posargs:}

[testenv:precommit]
basepython = python3
Expand Down

0 comments on commit f704663

Please sign in to comment.