Skip to content

Commit efc78dc

Browse files
author
BaptisteMorisse
committed
Add: pytest-cov to have an insight on test coverage
1 parent c7a478c commit efc78dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
run: |
1717
rye sync
1818
- name: Run pytest
19-
run: rye run pytest tests/test_examples_readme.py
19+
run: rye run pytest --cov=. tests/test_examples_readme.py

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dev-dependencies = [
4545
"ruff>=0.4.2",
4646
"pytest>=8.2.0",
4747
"pytest-examples>=0.0.10",
48+
"pytest-cov>=5.0.0",
4849
]
4950

5051
[tool.hatch.metadata]

0 commit comments

Comments
 (0)