From 708f97734e521c2616ee2a07cafce27f60c23735 Mon Sep 17 00:00:00 2001 From: Brian Koopman Date: Mon, 21 Oct 2024 15:46:53 -0400 Subject: [PATCH 1/2] Upload coverage reports to codecov --- .github/workflows/pytest.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0142db00..5f41e3ea 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -63,5 +63,11 @@ jobs: mv ./tests/.coverage.* ./ pip install coveralls coverage combine + coverage xml coverage report coveralls --service=github + + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 1a0a479d9adf7fbc95c2d356928f4d6416ade768 Mon Sep 17 00:00:00 2001 From: Brian Koopman Date: Mon, 21 Oct 2024 15:49:41 -0400 Subject: [PATCH 2/2] Configure codecov --- .github/codecov.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..a794f4ea --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,14 @@ +--- +# 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: + - "ocs/" + patch: false