Skip to content

Commit

Permalink
Replace coveralls with codecov
Browse files Browse the repository at this point in the history
Also setup the codecov configuration file.
  • Loading branch information
BrianJKoopman committed Oct 22, 2024
1 parent c65f092 commit 2940b43
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
codecov:
branch: main

# https://docs.codecov.com/docs/pull-request-comments#disable-comment
comment: false

# https://docs.codecov.com/docs/commit-status
coverage:
status:
project:
default:
target: auto
threshold: 3
paths:
- "socs/"
patch: false

# When modifying this file, please validate using
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate
4 changes: 0 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,11 @@ jobs:
# Coverage
- name: Report test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mv ./tests/.coverage.* ./
pip install -U coveralls
coverage combine
coverage xml
coverage report
coveralls --service=github
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ This project is licensed under the BSD 2-Clause License - see the
.. _LICENSE.txt: https://github.com/simonsobs/socs/blob/main/LICENSE.txt


.. |coverage| image:: https://coveralls.io/repos/github/simonsobs/socs/badge.svg
:target: https://coveralls.io/github/simonsobs/socs
.. |coverage| image:: https://codecov.io/gh/simonsobs/socs/graph/badge.svg?token=07SF75W0AZ
:target: https://codecov.io/gh/simonsobs/socs

.. |docker| image:: https://img.shields.io/badge/dockerhub-latest-blue
:target: https://hub.docker.com/r/simonsobs/socs
Expand Down

0 comments on commit 2940b43

Please sign in to comment.