Skip to content

Commit

Permalink
fix: coverage calculation in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dancergraham committed Jan 18, 2025
1 parent bf6ffe4 commit 716bd95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install coverage codecov
export DJANGO_SETTINGS_MODULE="test_settings"
export PYTHONPATH=.".:$PYTHONPATH"
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run coverage
run: |
source .venv/bin/activate
export DJANGO_SETTINGS_MODULE="test_settings"
export PYTHONPATH=.".:$PYTHONPATH"
coverage run --source=waffle django-admin test waffle
coverage report -m
- name: Upload coverage to Codecov
Expand Down

0 comments on commit 716bd95

Please sign in to comment.