Skip to content

Commit

Permalink
Install withou build isolations like in v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Giguere committed Apr 4, 2024
1 parent 4b14f44 commit da54808
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# matrix size; make sure to test all supported versions in some form.
python-version: ["3.9"]
case-name: [defaults]
numpy-requirement: [">=1.20,<1.21"]
numpy-requirement: [">=1.20"]
coverage-requirement: ["==6.5"]
# Extra special cases. In these, the new variable defined should always
# be a truth-y value (hence 'nomkl: 1' rather than 'mkl: 0'), because
Expand Down Expand Up @@ -68,6 +68,7 @@ jobs:
python-version: "3.9"
numpy-requirement: ">=1.20,<1.21"
openmp: 1
oldmatplotlib: 1 # Recent matplotlib don't work with numpy 1.20

# Builds without Cython at runtime. This is a core feature;
# everything should be able to run this.
Expand Down Expand Up @@ -143,13 +144,23 @@ jobs:
# In the run, first we handle any special cases. We do this in bash
# rather than in the GitHub Actions file directly, because bash gives us
# a proper programming language to use.
# We install without build isolation so qutip is compiled with the
# version of cython, scipy, numpy in the test matrix, not a temporary
# version use in the installation virtual environment.
run: |
QUTIP_TARGET="tests,graphics,ipython"
if [[ -z "${{ matrix.nocython }}" ]]; then
QUTIP_TARGET="$QUTIP_TARGET,runtime_compilation"
# Install the extra requirement
python -m pip install pytest>=5.2 pytest-rerunfailures # tests
python -m pip install matplotlib # graphics
python -m pip install ipython # ipython
python -m pip install "coverage${{ matrix.coverage-requirement }}" chardet
python -m pip install pytest-cov coveralls pytest-fail-slow
python -m pip install cython==0.29.36
if [[ "${{ matrix.oldmatplotlib }}" ]]; then
python -m pip install matplotlib==3.5.3
fi
if [[ -z "${{ matrix.nocvxopt }}" ]]; then
QUTIP_TARGET="$QUTIP_TARGET,semidefinite"
python -m pip install cvxpy>=1.0 cvxopt # semidefinite
fi
export CI_QUTIP_WITH_OPENMP=${{ matrix.openmp }}
if [[ -z "${{ matrix.nomkl }}" ]]; then
Expand All @@ -164,9 +175,11 @@ jobs:
if [[ -n "${{ matrix.conda-extra-pkgs }}" ]]; then
conda install "${{ matrix.conda-extra-pkgs }}"
fi
python -m pip install -e .[$QUTIP_TARGET]
python -m pip install "coverage${{ matrix.coverage-requirement }}"
python -m pip install pytest-cov coveralls pytest-fail-slow
python -m pip install -e . -v --no-build-isolation
if [[ "${{ matrix.nocython }}" ]]; then
python -m pip uninstall cython -y
fi
- name: Package information
run: |
Expand Down

0 comments on commit da54808

Please sign in to comment.