From 0a2dad4ddf75b7f727305fa3e99bc725585b0e8d Mon Sep 17 00:00:00 2001 From: Brian Koopman Date: Tue, 22 Oct 2024 13:54:26 -0500 Subject: [PATCH] Replace coveralls with codecov (#781) Also setup the codecov configuration file. --- .github/codecov.yml | 20 ++++++++++++++++++++ .github/workflows/pytest.yml | 4 ---- README.rst | 4 ++-- 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 000000000..68354fafe --- /dev/null +++ b/.github/codecov.yml @@ -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 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 3a549ffe1..b57c5b994 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 diff --git a/README.rst b/README.rst index bd1971cbb..b05e547a3 100644 --- a/README.rst +++ b/README.rst @@ -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