From 378b4acec7d0f1c27297352eda194360dfc78fa3 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Wed, 25 Sep 2024 19:16:56 -0400 Subject: [PATCH] Add yet an other CI for numpy 2.1 (#9540) --- .github/workflows/ci.yaml | 3 ++ ci/requirements/all-but-numba.yml | 54 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ci/requirements/all-but-numba.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4698e144293..1229dc97925 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,6 +58,9 @@ jobs: python-version: "3.10" os: ubuntu-latest # Latest python version: + - env: "all-but-numba" + python-version: "3.12" + os: ubuntu-latest - env: "all-but-dask" # Not 3.12 because of pint python-version: "3.11" diff --git a/ci/requirements/all-but-numba.yml b/ci/requirements/all-but-numba.yml new file mode 100644 index 00000000000..61f64a176af --- /dev/null +++ b/ci/requirements/all-but-numba.yml @@ -0,0 +1,54 @@ +name: xarray-tests +channels: + - conda-forge + - nodefaults +dependencies: + # Pin a "very new numpy" (updated Sept 24, 2024) + - numpy>=2.1.1 + - aiobotocore + - array-api-strict + - boto3 + - bottleneck + - cartopy + - cftime + - dask-core + - dask-expr # dask raises a deprecation warning without this, breaking doctests + - distributed + - flox + - fsspec + - h5netcdf + - h5py + - hdf5 + - hypothesis + - iris + - lxml # Optional dep of pydap + - matplotlib-base + - nc-time-axis + - netcdf4 + # numba, sparse, numbagg, numexpr often conflicts with newer versions of numpy. + # This environment helps us test xarray with the latest versions + # of numpy + # - numba + # - numbagg + # - numexpr + # - sparse + - opt_einsum + - packaging + - pandas + # - pint>=0.22 + - pip + - pooch + - pre-commit + - pyarrow # pandas raises a deprecation warning without this, breaking doctests + - pydap + - pytest + - pytest-cov + - pytest-env + - pytest-xdist + - pytest-timeout + - rasterio + - scipy + - seaborn + - toolz + - typing_extensions + - zarr