Skip to content

Commit 456e84b

Browse files
Test and support 3.11 (#417)
* Drop 3.8, support 3.11 * Update pyproject.toml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "Update pyproject.toml" This reverts commit 12e96b3. * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit 8285589. * Keep 3.8 * Try again * Try again * Fix again * Update upstream-dev-ci.yaml * Fix typo * try 3.11 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ba68cb7 commit 456e84b

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: ["ubuntu-latest"]
30-
python-version: ["3.8", "3.10"]
30+
python-version: ["3.8", "3.11"]
3131
steps:
3232
- uses: actions/checkout@v3
3333
with:
@@ -116,8 +116,6 @@ jobs:
116116
environment-file: ci/environment-no-optional-deps.yml
117117
environment-name: cf_xarray_test
118118
cache-env: true
119-
extra-specs: |
120-
python="${{ matrix.python-version }}"
121119
- name: Install cf_xarray
122120
run: |
123121
python -m pip install --no-deps -e .
@@ -132,8 +130,9 @@ jobs:
132130
defaults:
133131
run:
134132
shell: bash -l {0}
135-
env:
136-
PYTHON_VERSION: "3.10"
133+
strategy:
134+
matrix:
135+
python-version: ["3.8", "3.11"]
137136
steps:
138137
- uses: actions/checkout@v3
139138
with:
@@ -145,7 +144,7 @@ jobs:
145144
environment-name: cf_xarray_test
146145
cache-env: true
147146
extra-specs: |
148-
python="${{ env.PYTHON_VERSION }}"
147+
python="${{ matrix.python-version }}"
149148
- name: Install cf_xarray
150149
run: |
151150
python -m pip install --no-deps -e .

.github/workflows/upstream-dev-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.10"]
32+
python-version: ["3.11"]
3333
steps:
3434
- uses: actions/checkout@v3
3535
with:
@@ -42,9 +42,9 @@ jobs:
4242
with:
4343
environment-file: ci/upstream-dev-env.yml
4444
environment-name: cf_xarray_test
45+
cache-env: False
4546
extra-specs: |
4647
python="${{ matrix.python-version }}"
47-
pytest-reportlog
4848
- name: Install cf_xarray
4949
run: |
5050
python -m pip install --no-deps -e .

ci/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
dependencies:
55
- pip
6-
- python=3.8
6+
- python=3.11
77
- matplotlib-base
88
- netcdf4
99
- pooch

ci/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- pint
1515
- pooch
1616
- regex
17+
- rich
1718
- scipy
1819
- shapely
1920
- xarray

ci/upstream-dev-env.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ dependencies:
55
- pytest-cov
66
- pytest
77
- pytest-xdist
8+
- pytest-reportlog
89
- dask
910
- matplotlib-base
1011
- netcdf4
1112
- pandas
1213
- pooch
14+
- rich
1315
- shapely
1416
- pip
17+
- pip:
1518
- pytest-pretty
16-
- git+https://github.com/pydata/xarray
17-
- git+https://github.com/dcherian/flox
18-
- git+https://github.com/hgrecco/pint
19+
- git+https://github.com/pydata/xarray.git
20+
- git+https://github.com/dcherian/flox.git
21+
- git+https://github.com/hgrecco/pint.git

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.8",
1515
"Programming Language :: Python :: 3.9",
1616
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
1718
]
1819
dependencies = [
1920
"xarray",

0 commit comments

Comments
 (0)