From 69779b310c34db701ac6f941a6010e5211c94e6f Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Mon, 30 Dec 2024 23:07:59 +0100 Subject: [PATCH 1/2] Revert "Replace codecov with deepsource" --- .deepsource.toml | 7 ------- .github/workflows/tests.yml | 11 +++++------ codecov.yml | 9 +++++++++ 3 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 .deepsource.toml create mode 100644 codecov.yml diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index c9e3b509..00000000 --- a/.deepsource.toml +++ /dev/null @@ -1,7 +0,0 @@ -version = 1 - -[[analyzers]] -name = "python" - - [analyzers.meta] - runtime_version = "3.x.x" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ae91a69..b82a7bbe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -170,9 +170,8 @@ jobs: run: | nox --session=coverage -- xml -i - - name: Report test coverage to DeepSource - uses: deepsourcelabs/test-coverage-action@master - with: - key: python - coverage-file: ./coverage.xml - dsn: ${{ secrets.DEEPSOURCE_DSN }} + - name: Upload coverage report + uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..9ac26504 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +comment: false +coverage: + status: + project: + default: + target: "100" + patch: + default: + target: "100" From dc9a024eafd7c1d724dcc0582e6e9a940bad95bc Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Mon, 30 Dec 2024 23:09:08 +0100 Subject: [PATCH 2/2] Add comment --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 9ac26504..c5fcb450 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,4 +1,4 @@ -comment: false +comment: true coverage: status: project: