5454 if : ${{ needs.changes.outputs.changes == 'true' }}
5555 strategy :
5656 matrix :
57- python-version : ["3.10", "3.12 "]
57+ python-version : ["3.10", "3.13 "]
5858 steps :
5959 - uses : actions/checkout@v4
6060 with :
@@ -75,15 +75,14 @@ jobs:
7575 fail-fast : false
7676 matrix :
7777 os : ["ubuntu-latest"]
78- python-version : ["3.10", "3.12 "]
78+ python-version : ["3.10", "3.13 "]
7979 numpy-version : ["~=1.26.0", ">=2.0"]
8080 fast-compile : [0, 1]
8181 float32 : [0, 1]
8282 install-numba : [0]
8383 install-jax : [0]
8484 install-torch : [0]
8585 part :
86- - " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
8786 - " tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse"
8887 - " tests/scan"
8988 - " tests/sparse"
@@ -98,23 +97,24 @@ jobs:
9897 fast-compile : 1
9998 - python-version : " 3.10"
10099 float32 : 1
101- - python-version : " 3.10"
102- part : " tests/tensor/test_math.py"
103100 - fast-compile : 1
104101 float32 : 1
105- - part : " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
106- float32 : 1
107- - part : " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
108- fast-compile : 1
109102 - numpy-version : " ~=1.26.0"
110103 fast-compile : 1
111104 - numpy-version : " ~=1.26.0"
112105 float32 : 1
113106 - numpy-version : " ~=1.26.0"
114- python-version : " 3.12"
115- - numpy-version : " ~=1.26.0"
116- part : " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
107+ python-version : " 3.13"
117108 include :
109+ - os : " ubuntu-latest"
110+ part : " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
111+ python-version : " 3.12"
112+ numpy-version : " >=2.0"
113+ fast-compile : 0
114+ float32 : 0
115+ install-numba : 0
116+ install-jax : 0
117+ install-torch : 0
118118 - install-numba : 1
119119 os : " ubuntu-latest"
120120 python-version : " 3.10"
@@ -124,7 +124,7 @@ jobs:
124124 part : " tests/link/numba"
125125 - install-numba : 1
126126 os : " ubuntu-latest"
127- python-version : " 3.12 "
127+ python-version : " 3.13 "
128128 numpy-version : " ~=2.1.0"
129129 fast-compile : 0
130130 float32 : 0
@@ -138,7 +138,7 @@ jobs:
138138 part : " tests/link/jax"
139139 - install-jax : 1
140140 os : " ubuntu-latest"
141- python-version : " 3.12 "
141+ python-version : " 3.13 "
142142 numpy-version : " >=2.0"
143143 fast-compile : 0
144144 float32 : 0
@@ -151,23 +151,14 @@ jobs:
151151 float32 : 0
152152 part : " tests/link/pytorch"
153153 - os : macos-15
154- python-version : " 3.12 "
154+ python-version : " 3.13 "
155155 numpy-version : " >=2.0"
156156 fast-compile : 0
157157 float32 : 0
158158 install-numba : 0
159159 install-jax : 0
160160 install-torch : 0
161161 part : " tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
162- - os : " ubuntu-latest"
163- python-version : " 3.10"
164- numpy-version : " ~=1.26.0"
165- fast-compile : 0
166- float32 : 0
167- install-numba : 0
168- install-jax : 0
169- install-torch : 0
170- part : " tests/tensor/test_math.py"
171162
172163 steps :
173164 - uses : actions/checkout@v4
@@ -198,13 +189,13 @@ jobs:
198189 run : |
199190
200191 if [[ $OS == "macos-15" ]]; then
201- 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;
192+ micromamba install --yes -q "python~=${PYTHON_VERSION}" "numpy${NUMPY_VERSION}" scipy pip graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock libblas=*=*accelerate;
202193 else
203- 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;
194+ micromamba install --yes -q "python~=${PYTHON_VERSION}" mkl "numpy${NUMPY_VERSION}" scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock;
204195 fi
205- if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython " "numba>=0.57"; fi
206- if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython " jax jaxlib numpyro && pip install tensorflow-probability; fi
207- if [[ $INSTALL_TORCH == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython " pytorch pytorch-cuda=12.1 "mkl<=2024.0" -c pytorch -c nvidia; fi
196+ if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" "numba>=0.57"; fi
197+ if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" jax jaxlib numpyro && pip install tensorflow-probability; fi
198+ if [[ $INSTALL_TORCH == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" pytorch pytorch-cuda=12.1 "mkl<=2024.0" -c pytorch -c nvidia; fi
208199 pip install pytest-sphinx
209200
210201 pip install -e ./
@@ -269,7 +260,7 @@ jobs:
269260 - name : Install dependencies
270261 shell : micromamba-shell {0}
271262 run : |
272- micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython " mkl numpy scipy pip mkl-service cython pytest "numba>=0.57" jax jaxlib pytest-benchmark
263+ micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" mkl numpy scipy pip mkl-service cython pytest "numba>=0.57" jax jaxlib pytest-benchmark
273264 pip install -e ./
274265 micromamba list && pip freeze
275266 python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
@@ -322,7 +313,7 @@ jobs:
322313 - name : Set up Python
323314 uses : actions/setup-python@v5
324315 with :
325- python-version : " 3.12 "
316+ python-version : " 3.13 "
326317
327318 - name : Install dependencies
328319 run : |
0 commit comments