File tree 2 files changed +12
-2
lines changed 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Measure test coverage
31
31
run : |
32
- python -m pytest --cov=lazy_loader --durations=10
32
+ python -m pytest --cov --durations=10
33
33
# Tests fail if using `--doctest-modules`. I.e.,
34
34
# python -m pytest --cov=lazy_loader --doctest-modules --durations=20
35
35
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ dependencies = [
25
25
]
26
26
27
27
[project .optional-dependencies ]
28
- test = [" pytest >= 8.0" , " pytest-cov >= 5.0" ]
28
+ test = [" pytest >= 8.0" , " pytest-cov >= 5.0" , " coverage[toml] >= 7.2 " ]
29
29
lint = [" pre-commit == 4.2.0" ]
30
30
dev = [" changelist == 0.5" ]
31
31
@@ -92,3 +92,13 @@ ignore = [
92
92
93
93
[tool .ruff .format ]
94
94
docstring-code-format = true
95
+
96
+ [tool .coverage .run ]
97
+ branch = true
98
+ source = [" lazy_loader" , " tests" ]
99
+
100
+ [tool .coverage .paths ]
101
+ source = [
102
+ " src/lazy_loader" ,
103
+ " */site-packages/lazy_loader" ,
104
+ ]
You can’t perform that action at this time.
0 commit comments