File tree Expand file tree Collapse file tree 6 files changed +23
-4
lines changed Expand file tree Collapse file tree 6 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 82
82
install-numba : [0]
83
83
install-jax : [0]
84
84
install-torch : [0]
85
+ install-xarray : [0]
85
86
part :
86
87
- " tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse"
87
88
- " tests/scan"
@@ -115,6 +116,7 @@ jobs:
115
116
install-numba : 0
116
117
install-jax : 0
117
118
install-torch : 0
119
+ install-xarray : 0
118
120
- install-numba : 1
119
121
os : " ubuntu-latest"
120
122
python-version : " 3.10"
@@ -150,6 +152,13 @@ jobs:
150
152
fast-compile : 0
151
153
float32 : 0
152
154
part : " tests/link/pytorch"
155
+ - install-xarray : 1
156
+ os : " ubuntu-latest"
157
+ python-version : " 3.13"
158
+ numpy-version : " >=2.0"
159
+ fast-compile : 0
160
+ float32 : 0
161
+ part : " tests/xtensor"
153
162
- os : macos-15
154
163
python-version : " 3.13"
155
164
numpy-version : " >=2.0"
@@ -196,6 +205,7 @@ jobs:
196
205
if [[ $INSTALL_NUMBA == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" "numba>=0.57"; fi
197
206
if [[ $INSTALL_JAX == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" jax jaxlib numpyro && pip install tensorflow-probability; fi
198
207
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
208
+ if [[ $INSTALL_XARRAY == "1" ]]; then micromamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}" xarray xarray-einstats; fi
199
209
pip install pytest-sphinx
200
210
201
211
pip install -e ./
@@ -212,6 +222,7 @@ jobs:
212
222
INSTALL_NUMBA : ${{ matrix.install-numba }}
213
223
INSTALL_JAX : ${{ matrix.install-jax }}
214
224
INSTALL_TORCH : ${{ matrix.install-torch}}
225
+ INSTALL_XARRAY : ${{ matrix.install-xarray }}
215
226
OS : ${{ matrix.os}}
216
227
217
228
- name : Run tests
Original file line number Diff line number Diff line change 1
1
# ruff: noqa: E402
2
-
3
2
import pytest
4
3
5
4
Original file line number Diff line number Diff line change
1
+ # ruff: noqa: E402
1
2
import pytest
2
3
3
4
4
- # ruff: noqa: E402
5
5
pytest .importorskip ("xarray" ) #
6
6
7
7
import numpy as np
Original file line number Diff line number Diff line change
1
+ # ruff: noqa: E402
1
2
import pytest
2
3
4
+
5
+ pytest .importorskip ("xarray" )
6
+
3
7
from pytensor .xtensor .type import xtensor
4
8
from tests .xtensor .util import xr_arange_like , xr_assert_allclose , xr_function
5
9
Original file line number Diff line number Diff line change 1
1
# ruff: noqa: E402
2
- import re
3
-
4
2
import pytest
5
3
6
4
7
5
pytest .importorskip ("xarray" )
8
6
7
+ import re
9
8
from itertools import chain , combinations
10
9
11
10
import numpy as np
Original file line number Diff line number Diff line change
1
+ # ruff: noqa: E402
2
+ import pytest
3
+
4
+
5
+ pytest .importorskip ("xarray" )
6
+
1
7
import numpy as np
2
8
from xarray import DataArray
3
9
from xarray .testing import assert_allclose
You can’t perform that action at this time.
0 commit comments