Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that GitHub Actions tests against the installed package #231

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Loading