From b7cfecc4d27153e4cad275c2c2fbd2e9ee0f8302 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Tue, 21 Nov 2023 06:00:21 +0100 Subject: [PATCH 1/2] Updated workflow --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ebcef0b..fa70f8e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,3 +30,11 @@ jobs: run: | coverage run --source=appointment manage.py test appointment.tests --verbosity=1 coverage report + coverage xml + - name: Upload to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml # specify the location of the coverage report + flags: unittests # optional + name: codecov-umbrella # optional From ac14b84f4c3d78f76521e38717f7345764b5de08 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Tue, 21 Nov 2023 06:02:53 +0100 Subject: [PATCH 2/2] Updated workflow --- .github/workflows/codecov.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml deleted file mode 100644 index f408f21..0000000 --- a/.github/workflows/codecov.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Codecov Coverage - -on: - push: - branches-ignore: - - 'main' - workflow_dispatch: - -jobs: - deploy_coverage: - runs-on: ubuntu-20.04 - strategy: - max-parallel: 4 - matrix: - python-version: [3.10.5] - fail-fast: [false] - - steps: - - uses: actions/checkout@v3 - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file