From c322be7eb22fa4907c0e678f66959faa0ebbb9c5 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Mon, 16 Sep 2024 16:43:24 +0100 Subject: [PATCH 1/2] Use codecov-action in place of manual upload --- .github/workflows/tests.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 95df0989..64d46184 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,5 +32,9 @@ jobs: - name: Run tests run: | - pytest --cov-report term --cov=s2fft --cov-config=.coveragerc - codecov --token 298dc7ee-bb9f-4221-b31f-3576cc6cb702 + pytest --cov-report=xml --cov=s2fft --cov-config=.coveragerc + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 977e104bfeb6b1e1b1aaffb0d9c21f82b7644a36 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Wed, 23 Oct 2024 14:27:23 +0100 Subject: [PATCH 2/2] Remove codecov from test dependencies --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 75f6777b..6a2c310b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,7 +73,6 @@ plotting = [ tests = [ "pytest", "pytest-cov", - "codecov", "so3", ]