Skip to content

Commit 1976ee4

Browse files
committed
Refactor test matrix to adjust ignored and split tests
1 parent acae31e commit 1976ee4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,12 @@ jobs:
8484
install-torch: [0]
8585
install-xarray: [0]
8686
part:
87-
- "tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse --ignore=tests/xtensor"
87+
- "tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/xtensor"
8888
- "tests/scan"
89-
- "tests/sparse"
90-
- "tests/tensor --ignore=tests/tensor/conv --ignore=tests/tensor/rewriting --ignore=tests/tensor/test_math.py --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_inplace.py --ignore=tests/tensor/test_blas.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_math_scipy.py"
91-
- "tests/tensor/conv"
89+
- "tests/tensor --ignore=tests/tensor/rewriting --ignore=tests/tensor/test_math.py --ignore=tests/tensor/test_basic.py --ignore=tests/tensor/test_inplace.py --ignore=tests/tensor/conv --ignore=tests/tensor/test_blas.py --ignore=tests/tensor/test_elemwise.py --ignore=tests/tensor/test_math_scipy.py"
9290
- "tests/tensor/rewriting"
9391
- "tests/tensor/test_math.py"
94-
- "tests/tensor/test_basic.py tests/tensor/test_inplace.py"
92+
- "tests/tensor/test_basic.py tests/tensor/test_inplace.py tests/tensor/conv"
9593
- "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
9694
exclude:
9795
- python-version: "3.10"
@@ -119,18 +117,19 @@ jobs:
119117
install-xarray: 0
120118
- install-numba: 1
121119
os: "ubuntu-latest"
122-
python-version: "3.10"
120+
python-version: "3.13"
123121
numpy-version: "~=2.1.0"
124122
fast-compile: 0
125123
float32: 0
126-
part: "tests/link/numba"
124+
part: "tests/link/numba --ignore=tests/link/test_slinalg.py"
127125
- install-numba: 1
128126
os: "ubuntu-latest"
129127
python-version: "3.13"
130128
numpy-version: "~=2.1.0"
131129
fast-compile: 0
132130
float32: 0
133-
part: "tests/link/numba"
131+
part:
132+
- "tests/link/numba/test_slinalg.py"
134133
- install-jax: 1
135134
os: "ubuntu-latest"
136135
python-version: "3.10"
@@ -207,7 +206,7 @@ jobs:
207206
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
208207
if [[ $INSTALL_XARRAY == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" xarray xarray-einstats; fi
209208
pip install pytest-sphinx
210-
209+
211210
pip install -e ./
212211
micromamba list && pip freeze
213212
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
@@ -218,7 +217,7 @@ jobs:
218217
fi
219218
env:
220219
PYTHON_VERSION: ${{ matrix.python-version }}
221-
NUMPY_VERSION: ${{ matrix.numpy-version }}
220+
NUMPY_VERSION: ${{ matrix.numpy-version }}
222221
INSTALL_NUMBA: ${{ matrix.install-numba }}
223222
INSTALL_JAX: ${{ matrix.install-jax }}
224223
INSTALL_TORCH: ${{ matrix.install-torch}}
@@ -343,4 +342,3 @@ jobs:
343342
directory: ./coverage/
344343
fail_ci_if_error: true
345344
token: ${{ secrets.CODECOV_TOKEN }}
346-

0 commit comments

Comments
 (0)