Skip to content

Commit

Permalink
Merge pull request #253 from dsgnr/pytest_coverage_report
Browse files Browse the repository at this point in the history
Add coverage reporting for Pytest
  • Loading branch information
dsgnr authored Nov 8, 2024
2 parents e78ddda + f726b42 commit 752b90b
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/api-code-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Test
run: pytest tests
- name: Test with pytest
run: coverage run -m pytest tests

- name: Generate Coverage Report
run: coverage report
pylint:
runs-on: ubuntu-latest
steps:
Expand Down
94 changes: 93 additions & 1 deletion backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pylint = "^3.3.1"
isort = "^5.13.2"
pytest = "^8.3.3"
pytest-mock = "^3.14.0"
pytest-cov = "^6.0.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 752b90b

Please sign in to comment.