Skip to content

Commit

Permalink
Move back from CodeCov to Coveralls (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae authored Nov 30, 2020
1 parent 6918686 commit 8ec8b79
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
relative_files = True
27 changes: 17 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: [3.6, 3.7, 3.8]

env:
# Used to tag CodeCov submissions
# Used for coveralls flag
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

Expand Down Expand Up @@ -62,17 +62,24 @@ jobs:
pip install -r requirements-dev.txt
- name: Test with pytest
run: pytest --cov=pyfftlog --flake8 --cov-report xml
run: pytest --cov=pyfftlog --flake8

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v1
- name: Coveralls
# [pin v20201129]
uses: AndreMiras/coveralls-python-action@f5fd5c309b39d01599fb92c72d4f7409ea78aec9
with:
file: ./coverage.xml
env_vars: OS,PYTHON
# Don't mark the job as failed if the upload fails for some reason.
# It does sometimes but shouldn't be the reason for running
# everything again unless something else is broken.
fail_ci_if_error: false
parallel: true
flag-name: OS,PYTHON

coveralls_finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
# [pin v20201129]
uses: AndreMiras/coveralls-python-action@f5fd5c309b39d01599fb92c72d4f7409ea78aec9
with:
parallel-finished: true

deploy:
needs: test
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ exclude requirements.txt
exclude requirements-dev.txt
exclude .readthedocs.yml
exclude .gitignore
exclude .coveragerc
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
.. image:: https://github.com/prisae/pyfftlog/workflows/pytest/badge.svg?branch=master
:target: https://github.com/prisae/pyfftlog/actions
:alt: GitHub Actions
.. image:: https://codecov.io/gh/prisae/pyfftlog/branch/master/graph/badge.svg
:target: https://codecov.io/gh/prisae/pyfftlog
:alt: CodeCov
.. image:: https://coveralls.io/repos/github/prisae/pyfftlog/badge.svg?branch=master
:target: https://coveralls.io/github/prisae/pyfftlog?branch=master
:alt: Coveralls
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3830364.svg
:target: https://doi.org/10.5281/zenodo.3830364
:alt: Zenodo DOI
Expand Down

0 comments on commit 8ec8b79

Please sign in to comment.