Skip to content

Commit

Permalink
Revert "Install editable for pytest in CI"
Browse files Browse the repository at this point in the history
This reverts commit f8abfa9.
  • Loading branch information
inducer committed Nov 5, 2023
1 parent f8abfa9 commit 4e0b1c7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 82 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ 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 gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project-within-miniconda.sh
pytest_intel:
Expand All @@ -83,12 +77,6 @@ jobs:
source /opt/enable-intel-cl.sh
curl -L -O https://tiker.net/ci-support-v0
. ./ci-support-v0
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
build_py_project_in_conda_env
test_py_project
Expand All @@ -101,12 +89,6 @@ jobs:
run: |
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
export _LOOPY_SKIP_ARG_CHECKS=1
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project-within-miniconda.sh
pytest_twice:
Expand All @@ -117,12 +99,6 @@ jobs:
- name: "Main Script"
run: |
curl -L -O https://tiker.net/ci-support-v0
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./ci-support-v0
build_py_project_in_conda_env
( test_py_project )
Expand Down
86 changes: 28 additions & 58 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
Pytest POCL:
script: |
export PYOPENCL_TEST=portable:pthread
export EXTRA_INSTALL="pybind11 numpy mako"
export LOOPY_NO_CACHE=1
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project.sh
script:
- export PYOPENCL_TEST=portable:pthread
- export EXTRA_INSTALL="pybind11 numpy mako"
- export LOOPY_NO_CACHE=1
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python3
- pocl
Expand All @@ -21,19 +15,13 @@ Pytest POCL:
junit: test/pytest.xml

Pytest Nvidia Titan V:
script: |
export PYOPENCL_TEST=nvi:titan
export EXTRA_INSTALL="pybind11 numpy mako"
export LOOPY_NO_CACHE=1
source /opt/enable-intel-cl.sh
curl -L -O https://gitlab.tiker."net/inducer/ci-support/raw/main/build-and-test-py-project.sh
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project.sh
script:
- export PYOPENCL_TEST=nvi:titan
- export EXTRA_INSTALL="pybind11 numpy mako"
- export LOOPY_NO_CACHE=1
- source /opt/enable-intel-cl.sh
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python3
- nvidia-titan-v
Expand All @@ -44,19 +32,13 @@ Pytest Nvidia Titan V:
junit: test/pytest.xml

Pytest POCL without arg check:
script: |
export PYOPENCL_TEST=portable:pthread
export EXTRA_INSTALL="pybind11 numpy mako"
export LOOPY_NO_CACHE=1
export _LOOPY_SKIP_ARG_CHECKS=1
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project.sh
script:
- export PYOPENCL_TEST=portable:pthread
- export EXTRA_INSTALL="pybind11 numpy mako"
- export LOOPY_NO_CACHE=1
- export _LOOPY_SKIP_ARG_CHECKS=1
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python3
- pocl
Expand All @@ -67,20 +49,14 @@ Pytest POCL without arg check:
junit: test/pytest.xml

Pytest Intel:
script: |
export PYOPENCL_TEST=intel
export EXTRA_INSTALL="pybind11 numpy mako"
export LOOPY_NO_CACHE=1
export LOOPY_INTEL_CL_OK_FOR_TEST_REF=1
source /opt/enable-intel-cl.sh
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
. ./build-and-test-py-project.sh
script:
- export PYOPENCL_TEST=intel
- export EXTRA_INSTALL="pybind11 numpy mako"
- export LOOPY_NO_CACHE=1
- export LOOPY_INTEL_CL_OK_FOR_TEST_REF=1
- source /opt/enable-intel-cl.sh
- curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python3
- intel-cl-cpu
Expand All @@ -97,12 +73,6 @@ Pytest POCL Twice With Cache:
export EXTRA_INSTALL="pybind11 numpy mako"
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ./ci-support.sh
# Pytest gripes about ImportPathMismatchError if 'loopy.xyz'
# is importable both from a venv and the subdirectory.
# -AK, 2023-11-01
PROJECT_INSTALL_FLAGS="--editable"
build_py_project_in_venv
( test_py_project )
( test_py_project )
Expand Down

0 comments on commit 4e0b1c7

Please sign in to comment.