Skip to content

Commit 4dd1221

Browse files
committed
CI: Update pytest invocation to get test coverage
1 parent 374bc1e commit 4dd1221

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.coveragerc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
branch = True
33
omit =
44
*/_version.py
5+
6+
[paths]
7+
source =
8+
pydra/tasks
9+
/**/pydra/tasks

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ jobs:
8787
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
8888
- name: Test with pytest
8989
run: |
90-
pytest -sv --doctest-modules pydra/tasks/$SUBPACKAGE \
91-
--cov pydra.tasks.$SUBPACKAGE --cov-report xml
90+
pytest -sv --doctest-modules --pyargs pydra.tasks.$SUBPACKAGE \
91+
--cov pydra.tasks.$SUBPACKAGE --cov-report xml --cov-report term-missing
9292
- uses: codecov/codecov-action@v4
9393
if: ${{ always() }}
9494
with:

0 commit comments

Comments
 (0)