diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ab4b8f0c26a..2d190efc14c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,7 +42,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] # Bookend python versions - python-version: ["3.8", "3.10"] + python-version: ["3.8", "3.10", "3.11"] env: [""] include: # Minimum python version: @@ -67,7 +67,13 @@ jobs: run: | echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - if [[ ${{ matrix.os }} == windows* ]] ; + if [[ "${{matrix.python-version}}" == "3.11" ]]; then + if [[ ${{matrix.os}} == windows* ]]; then + echo "CONDA_ENV_FILE=ci/requirements/environment-windows-py311.yml" >> $GITHUB_ENV + else + echo "CONDA_ENV_FILE=ci/requirements/environment-py311.yml" >> $GITHUB_ENV + fi + elif [[ ${{ matrix.os }} == windows* ]] ; then echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV elif [[ "${{ matrix.env }}" != "" ]] ; diff --git a/ci/requirements/environment-py311.yml b/ci/requirements/environment-py311.yml new file mode 100644 index 00000000000..e23fa44c683 --- /dev/null +++ b/ci/requirements/environment-py311.yml @@ -0,0 +1,48 @@ +name: xarray-tests +channels: + - conda-forge + - nodefaults +dependencies: + - aiobotocore + - boto3 + - bottleneck + - cartopy + # - cdms2 + - cfgrib + - cftime + - dask-core + - distributed + - flox + - fsspec!=2021.7.0 + - h5netcdf + - h5py + - hdf5 + - hypothesis + - iris + - lxml # Optional dep of pydap + - matplotlib-base + - nc-time-axis + - netcdf4 + # - numba + # - numbagg + - numexpr + - numpy + - packaging + - pandas + - pint + - pip + - pooch + - pre-commit + - pseudonetcdf + - pydap + - pytest + - pytest-cov + - pytest-env + - pytest-xdist + - rasterio + - scipy + - seaborn + # - sparse + - toolz + - typing_extensions + - zarr diff --git a/ci/requirements/environment-windows-py311.yml b/ci/requirements/environment-windows-py311.yml new file mode 100644 index 00000000000..3fc207dc609 --- /dev/null +++ b/ci/requirements/environment-windows-py311.yml @@ -0,0 +1,44 @@ +name: xarray-tests +channels: + - conda-forge +dependencies: + - boto3 + - bottleneck + - cartopy + # - cdms2 # Not available on Windows + # - cfgrib # Causes Python interpreter crash on Windows: https://github.com/pydata/xarray/pull/3340 + - cftime + - dask-core + - distributed + - flox + - fsspec!=2021.7.0 + - h5netcdf + - h5py + - hdf5 + - hypothesis + - iris + - lxml # Optional dep of pydap + - matplotlib-base + - nc-time-axis + - netcdf4 + # - numba + # - numbagg + - numpy + - packaging + - pandas + - pint + - pip + - pre-commit + - pseudonetcdf + - pydap + - pytest + - pytest-cov + - pytest-env + - pytest-xdist + - rasterio + - scipy + - seaborn + # - sparse + - toolz + - typing_extensions + - zarr diff --git a/setup.cfg b/setup.cfg index 7919908e8ec..70b810307be 100644 --- a/setup.cfg +++ b/setup.cfg @@ -67,6 +67,7 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Scientific/Engineering [options]