Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:

- name: Run tests with coverage
run: |
pytest --cov=app --cov-report=term-missing --cov-fail-under=85
pytest --cov=app --cov-report=term-missing --cov-fail-under=80
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pytest --cov=app --cov-report=term-missing

2) Coverage gate in CI
- GitHub Actions workflow runs on pushes and PRs, testing Python 3.10–3.12.
- The job fails if line coverage for `app` drops below 85%.
- The job fails if line coverage for `app` drops below 80%.

3) What is covered
- Core function `get_metrics` and the `/metrics` Flask endpoint are tested with `psutil` mocked.
Expand Down