Skip to content

Commit

Permalink
Install the project editable to avoid ambiguity that pytest dislikes
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 1, 2023
1 parent cc72370 commit dea2373
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
- name: "Main Script"
run: |
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
# pytest gets angry when 'import pytato.array' may come
# from both the project file and the venv. This matters
# because of doctest collection.
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project-within-miniconda.sh
examples:
Expand Down
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Python 3 POCL:
- export PYOPENCL_TEST=portable:pthread
- export EXTRA_INSTALL="pyopencl mpi4py jax[cpu]"
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
# pytest gets angry when 'import pytato.array' may come
# from both the project file and the venv. This matters
# because of doctest collection.
- 'PROJECT_INSTALL_FLAGS="--editable"'
- ". ./build-and-test-py-project.sh"
tags:
- python3
Expand Down

0 comments on commit dea2373

Please sign in to comment.