Skip to content

Commit 0c80506

Browse files
committed
Change coverage defaults
Make source=src (override-able if needed), and turn on missing line reporting
1 parent 9828173 commit 0c80506

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.coveragerc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[run]
2-
omit =
3-
# Don't cover code in the env (just in case)
4-
env/*
2+
source =
3+
src
54

5+
omit =
66
# Don't worry about covering vendored libraries
77
src/sphobjinv/_vendored/*
88

99
[report]
1010
exclude_lines =
1111
pragma: no cover
1212
^\s*pass\s*$
13+
14+
show_missing = True

.github/workflows/ci_tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
make html
3333
mkdir scratch
3434
35-
- name: Run tests
35+
- name: Run tests & report source coverage
3636
run: |
37-
pytest --cov=src --testall --nonloc
37+
pytest --cov --testall --nonloc
3838
tox -e sdist_install
3939
4040
- name: Run doctests
@@ -86,7 +86,7 @@ jobs:
8686
make html
8787
mkdir scratch
8888
89-
- name: Run tests
89+
- name: Run tests & report source coverage
9090
run: |
91-
pytest --cov=src --testall --nonloc
91+
pytest --cov --testall --nonloc
9292
tox -e sdist_install

0 commit comments

Comments
 (0)