From 21a5e2d57b0f4e1eee99afd9661ca70b9c1d4725 Mon Sep 17 00:00:00 2001 From: dancergraham Date: Sat, 18 Jan 2025 14:52:43 +0100 Subject: [PATCH] fix: coverage calculation in ci --- .github/workflows/python-package.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5d56f224..cd91f53b 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -142,16 +142,10 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Run coverage run: | - coverage run --source=waffle ./run.sh test - coverage report - coverage xml + coverage run --source=waffle django-admin test waffle + coverage report -m - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - flags: unittests - name: codecov-umbrella release-production: # Only upload if a tag is pushed (otherwise just build & check)