65
65
-
uses :
pre-commit/[email protected]
66
66
67
67
test :
68
- name : " ${{ matrix.os }} test py${{ matrix.python-version }} : fast-compile ${{ matrix.fast-compile }} : float32 ${{ matrix.float32 }} : ${{ matrix.part }}"
68
+ name : " ${{ matrix.os }} test py${{ matrix.python-version }} numpy${{ matrix.numpy-version }} : fast-compile ${{ matrix.fast-compile }} : float32 ${{ matrix.float32 }} : ${{ matrix.part }}"
69
69
needs :
70
70
- changes
71
71
- style
76
76
matrix :
77
77
os : ["ubuntu-latest"]
78
78
python-version : ["3.10", "3.12"]
79
+ numpy-version : ["~=1.26.0", ">=2.0"]
79
80
fast-compile : [0, 1]
80
81
float32 : [0, 1]
81
82
install-numba : [0]
@@ -105,45 +106,68 @@ jobs:
105
106
float32 : 1
106
107
- part : " --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
107
108
fast-compile : 1
109
+ - numpy-version : " ~=1.26.0"
110
+ fast-compile : 1
111
+ - numpy-version : " ~=1.26.0"
112
+ float32 : 1
113
+ - 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"
108
117
include :
109
118
- install-numba : 1
110
119
os : " ubuntu-latest"
111
120
python-version : " 3.10"
121
+ numpy-version : " ~=2.1.0"
112
122
fast-compile : 0
113
123
float32 : 0
114
124
part : " tests/link/numba"
115
125
- install-numba : 1
116
126
os : " ubuntu-latest"
117
127
python-version : " 3.12"
128
+ numpy-version : " ~=2.1.0"
118
129
fast-compile : 0
119
130
float32 : 0
120
131
part : " tests/link/numba"
121
132
- install-jax : 1
122
133
os : " ubuntu-latest"
123
134
python-version : " 3.10"
135
+ numpy-version : " >=2.0"
124
136
fast-compile : 0
125
137
float32 : 0
126
138
part : " tests/link/jax"
127
139
- install-jax : 1
128
140
os : " ubuntu-latest"
129
141
python-version : " 3.12"
142
+ numpy-version : " >=2.0"
130
143
fast-compile : 0
131
144
float32 : 0
132
145
part : " tests/link/jax"
133
146
- install-torch : 1
134
147
os : " ubuntu-latest"
135
148
python-version : " 3.10"
149
+ numpy-version : " >=2.0"
136
150
fast-compile : 0
137
151
float32 : 0
138
152
part : " tests/link/pytorch"
139
153
- os : macos-15
140
154
python-version : " 3.12"
155
+ numpy-version : " >=2.0"
141
156
fast-compile : 0
142
157
float32 : 0
143
158
install-numba : 0
144
159
install-jax : 0
145
160
install-torch : 0
146
161
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"
147
171
148
172
steps :
149
173
- uses : actions/checkout@v4
@@ -174,9 +198,9 @@ jobs:
174
198
run : |
175
199
176
200
if [[ $OS == "macos-15" ]]; then
177
- micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" numpy scipy pip graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock libblas=*=*accelerate;
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;
178
202
else
179
- micromamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl numpy scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark pytest-mock;
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;
180
204
fi
181
205
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57"; fi
182
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
@@ -193,6 +217,7 @@ jobs:
193
217
fi
194
218
env :
195
219
PYTHON_VERSION : ${{ matrix.python-version }}
220
+ NUMPY_VERSION : ${{ matrix.numpy-version }}
196
221
INSTALL_NUMBA : ${{ matrix.install-numba }}
197
222
INSTALL_JAX : ${{ matrix.install-jax }}
198
223
INSTALL_TORCH : ${{ matrix.install-torch}}
0 commit comments