Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to codecov #342

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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