Skip to content

Commit

Permalink
Remove coverage comment and ignore init files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Feb 26, 2025
1 parent 01c2190 commit e43d507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/pr_ci_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ jobs:
python ./backend/manage.py makemigrations
python ./backend/manage.py migrate
- name: Build Coverage File
- name: Run pytest - Unit Tests
run: |
pytest ./backend --cov=backend --junitxml=pytest.xml --cov-report=xml --cov-report=term --cov-fail-under=70 | tee pytest-coverage.txt
continue-on-error: false

- name: Pytest Coverage Comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: pytest-coverage.txt
junitxml-path: pytest.xml
pytest ./backend --cov=backend --cov-report=term --cov-fail-under=70
1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ omit = [
"asgi.py",
"wsgi.py",
"manage.py",
"*/__init__.py",
]

[tool.mypy]
Expand Down

0 comments on commit e43d507

Please sign in to comment.