diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 94976812..ad7c3d43 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -28,11 +28,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -e . - python -m pip install pytest pytest-cov numpy + python -m pip install -e .[arrays,test] - name: Test source code and docs run: | pytest --cov . --cov-report xml + env: + PYTHONSAFEPATH: "TRUE" - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: diff --git a/pyproject.toml b/pyproject.toml index 10479bf4..1655f5d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,4 +66,5 @@ doc = ["sphinx", "sphinx-copybutton", "python-docs-theme"] all = ["uncertainties[doc,test,arrays]"] [tool.pytest.ini_options] +# import-mode = "importlib" testpaths = ["tests"]