Skip to content

Commit 35f108d

Browse files
committed
CI/TST: Use editable install for ease of test coverage
Using pyargs and normal installs causes multiple numpy installations to be found. We can work around this with an editable local install and letting coverage pick up our local source directory structure.
1 parent 03381e2 commit 35f108d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ jobs:
6464
- name: Install pymsis
6565
run: |
6666
python -m pip install --upgrade pip
67-
python -m pip install -v .[test]
67+
python -m pip install meson-python ninja numpy
68+
# Need to install the package in editable mode for coverage
69+
python -m pip install -v --no-build-isolation -e .[test]
6870
6971
- name: Test with pytest
7072
run: |
71-
# TODO: Get coverage for other modules without specifying pymsis.msis directly
72-
pytest --color=yes --cov=pymsis.msis --cov pymsis.utils --cov-report=xml --pyargs pymsis
73+
pytest --color=yes --cov --cov-report=xml
7374
7475
- name: Upload code coverage
7576
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)