Skip to content

Commit

Permalink
try picking up installed package with --pyargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Kienzle committed Oct 7, 2024
1 parent 46178b7 commit 7a5dd61
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
with:
python-version: '3.11'

#- name: test package before building wheel
# run: |
# python -m pip install numpy pytest pytest-cov
# pytest -v

- name: build wheel
run: |
python -m pip install build
Expand Down Expand Up @@ -95,6 +100,9 @@ jobs:
run: |
python -m pip install pytest pytest-cov
- name: Test with pytest
# Change into the test directory to test the wheel so that the
# source directory is not on the path. Full tests with coverage are
# run before building the wheel.
- name: Test wheel with pytest
run: |
pytest -v --import-mode=importlib
pytest -v --pyargs --import-mode=append

0 comments on commit 7a5dd61

Please sign in to comment.