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 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