Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
test: test coverage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Apr 19, 2024
1 parent 39cdcbd commit 7635a8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: Run Tests
env:
TOXENV: ${{ matrix.toxenv }}
COVERAGE_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: make validate
- name: Make Static and Validate Translations
env:
Expand All @@ -48,6 +49,7 @@ jobs:
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ shell: ## Run Python shell with devstack settings
python manage.py shell

coverage: clean
$(TOX)pytest --cov-report html
$(TOX)pytest --cov-report html -t $(COVERAGE_TOKEN)

test: clean ## run tests and generate coverage report
$(TOX)pytest
Expand Down

0 comments on commit 7635a8f

Please sign in to comment.