Skip to content

Commit

Permalink
Updated workflow to unpin numpy
Browse files Browse the repository at this point in the history
Except for Numba jobs, which need numpy 2.1.0
  • Loading branch information
brendan-m-murphy committed Feb 6, 2025
1 parent c489137 commit 7ad30ee
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.12"]
numpy-version: ["1.26", "2.1"]
numpy-version: ["~=1.26.0", ">=2.0"]
fast-compile: [0, 1]
float32: [0, 1]
install-numba: [0]
Expand Down Expand Up @@ -106,53 +106,53 @@ jobs:
float32: 1
- part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
fast-compile: 1
- numpy-version: "1.26"
- numpy-version: "~=1.26.0"
fast-compile: 1
- numpy-version: "1.26"
- numpy-version: "~=1.26.0"
float32: 1
- numpy-version: "1.26"
- numpy-version: "~=1.26.0"
python-version: "3.12"
- numpy-version: "1.26"
- numpy-version: "~=1.26.0"
part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
include:
- install-numba: 1
os: "ubuntu-latest"
python-version: "3.10"
numpy-version: "2.1"
numpy-version: "~=2.1.0"
fast-compile: 0
float32: 0
part: "tests/link/numba"
- install-numba: 1
os: "ubuntu-latest"
python-version: "3.12"
numpy-version: "2.1"
numpy-version: "~=2.1.0"
fast-compile: 0
float32: 0
part: "tests/link/numba"
- install-jax: 1
os: "ubuntu-latest"
python-version: "3.10"
numpy-version: "2.1"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
part: "tests/link/jax"
- install-jax: 1
os: "ubuntu-latest"
python-version: "3.12"
numpy-version: "2.1"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
part: "tests/link/jax"
- install-torch: 1
os: "ubuntu-latest"
python-version: "3.10"
numpy-version: "2.1"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
part: "tests/link/pytorch"
- os: macos-15
python-version: "3.12"
numpy-version: "2.1"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
install-numba: 0
Expand All @@ -161,7 +161,7 @@ jobs:
part: "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
- os: "ubuntu-latest"
python-version: "3.10"
numpy-version: "1.26"
numpy-version: "~=1.26.0"
fast-compile: 0
float32: 0
install-numba: 0
Expand Down Expand Up @@ -198,9 +198,9 @@ jobs:
run: |
if [[ $OS == "macos-15" ]]; then
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" "numpy~=${NUMPY_VERSION}.0" scipy pip graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock libblas=*=*accelerate;
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" "numpy${NUMPY_VERSION}" scipy pip graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock libblas=*=*accelerate;
else
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl "numpy~=${NUMPY_VERSION}.0" scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock;
micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl "numpy${NUMPY_VERSION}" scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock;
fi
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57"; fi
if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" jax jaxlib numpyro && pip install tensorflow-probability; fi
Expand Down

0 comments on commit 7ad30ee

Please sign in to comment.