Skip to content

Commit df55763

Browse files
committed
ci: enforce 85% pytest coverage threshold in CI
Added pytest-cov to dev dependencies and --cov runcycles --cov-fail-under=85 to the CI test step. Current coverage is 100%. Updated README Development section to document the coverage command. https://claude.ai/code/session_01HXikxwPuurjunotYpbmsE7
1 parent 22f0ce5 commit df55763

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
- name: Type check with mypy
3535
run: mypy runcycles
3636

37-
- name: Run tests
38-
run: pytest
37+
- name: Run tests with coverage
38+
run: pytest --cov runcycles --cov-fail-under=85

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ ruff check .
312312
# Type check (strict mode)
313313
mypy runcycles
314314

315-
# Run tests
316-
pytest
315+
# Run tests with coverage (85% threshold enforced in CI)
316+
pytest --cov runcycles --cov-fail-under=85
317317
```
318318

319319
CI runs all three checks on Python 3.10 and 3.12 for every push and pull request.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies = [
1818
dev = [
1919
"pytest>=7.0",
2020
"pytest-asyncio>=0.21",
21+
"pytest-cov>=4.0",
2122
"pytest-httpx>=0.30",
2223
"mypy>=1.0",
2324
"ruff>=0.1",

0 commit comments

Comments
 (0)