File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -312,8 +312,8 @@ ruff check .
312312# Type check (strict mode)
313313mypy 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
319319CI runs all three checks on Python 3.10 and 3.12 for every push and pull request.
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ dependencies = [
1818dev = [
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" ,
You can’t perform that action at this time.
0 commit comments