Skip to content

Commit d9a3b2c

Browse files
michaelosthegeaseyboldt
authored andcommitted
Use pytest-cov to report coverage
1 parent a0a3604 commit d9a3b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install Dependences
3030
run: |
31-
conda install --yes conda-build conda-verify coverage pytest hypothesis statsmodels aesara c-compiler
31+
conda install --yes conda-build conda-verify pytest pytest-cov hypothesis statsmodels aesara c-compiler
3232
- name: Build package
3333
run: |
3434
conda build --variants "{python: [${{ matrix.python-version }}]}" ./sunode/conda
@@ -38,4 +38,4 @@ jobs:
3838
- name: Test with coverage
3939
run: |
4040
# conda activate doesn't seem to set paths to the conda prefix correctly
41-
env LD_LIBRARY_PATH=${CONDA_PREFIX}/lib coverage run -m pytest --pyargs sunode
41+
env LD_LIBRARY_PATH=${CONDA_PREFIX}/lib pytest --cov=sunode --cov-report xml --cov-report term-missing sunode

0 commit comments

Comments
 (0)