We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dbc6e4 commit f5d5fa4Copy full SHA for f5d5fa4
1 file changed
.github/workflows/ci.yml
@@ -34,7 +34,11 @@ jobs:
34
pip install .
35
- name: Run tests
36
run: |
37
- py.test -vv --cov=injector --cov-branch --cov-report html --cov-report term
+ # Run via `python -m pytest` (not `py.test`) so the working directory is on
38
+ # sys.path and coverage measures the local `injector/` rather than the copy
39
+ # installed in site-packages. Otherwise coverage reports 0%.
40
+ # See https://github.com/pytest-dev/pytest-cov/issues/98
41
+ python -m pytest -vv --cov=injector --cov-branch --cov-report html --cov-report term
42
if which mypy; then mypy injector ; fi
43
if which black; then black --check . ; fi
44
check-manifest
0 commit comments