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