From 7e13b8e3872df89a847e77f64b077ca40e736d2d Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Fri, 26 Dec 2025 21:36:03 -0700 Subject: [PATCH] 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. --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4f2b2a8..3c82792 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -64,12 +64,13 @@ jobs: - name: Install pymsis run: | python -m pip install --upgrade pip - python -m pip install -v .[test] + python -m pip install meson-python ninja numpy setuptools_scm + # Need to install the package in editable mode for coverage + python -m pip install -v --no-build-isolation -e .[test] - name: Test with pytest run: | - # TODO: Get coverage for other modules without specifying pymsis.msis directly - pytest --color=yes --cov=pymsis.msis --cov pymsis.utils --cov-report=xml --pyargs pymsis + pytest --color=yes --cov --cov-report=xml - name: Upload code coverage uses: codecov/codecov-action@v5