Skip to content

Commit 742b333

Browse files
committed
CI: add python 3.14 tests
1 parent fe84b78 commit 742b333

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ci-testing.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ['3.11', '3.12', '3.13']
20+
python-version: ['3.11', '3.12', '3.13', '3.14']
2121
use-network: [true]
2222
include:
2323
- os: ubuntu-latest
24+
# switch to py 3.14 when fiona wheels are available https://github.com/Toblerity/Fiona/issues/1504
2425
python-version: '3.13'
2526
use-network: false
2627

@@ -46,6 +47,7 @@ jobs:
4647
- name: Coverage packages
4748
id: coverage
4849
# only want the coverage to be run on the latest ubuntu and for code changes i.e. push and pr
50+
# switch to py 3.14 when fiona wheels are available https://github.com/Toblerity/Fiona/issues/1504
4951
if: |
5052
matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' &&
5153
(github.event_name == 'push' || github.event_name == 'pull_request')
@@ -68,7 +70,13 @@ jobs:
6870
if [ ${{ steps.minimum-packages.conclusion }} == 'skipped' ]; then
6971
# Default is to install just the minimum testing requirements,
7072
# but we want to get as much coverage as possible.
71-
EXTRA_PACKAGES=',ows,plotting,speedups'
73+
if [ ${{ matrix.python-version }} == '3.14' ]; then
74+
# remove this if loop when fiona wheels are available for py3.14
75+
# https://github.com/Toblerity/Fiona/issues/1504
76+
EXTRA_PACKAGES=',ows,plotting'
77+
pip install pykdtree
78+
else
79+
EXTRA_PACKAGES=',ows,plotting,speedups'
7280
fi
7381
pip install -e .[test${EXTRA_PACKAGES}]
7482
python -c "import cartopy; print('Version ', cartopy.__version__)"
@@ -157,7 +165,7 @@ jobs:
157165
uses: conda-incubator/setup-miniconda@v3
158166
with:
159167
auto-update-conda: true
160-
python-version: '3.13'
168+
python-version: '3.14'
161169
activate-environment: cartopy-dev
162170
environment-file: environment.yml
163171

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies:
3232
- sphinx-copybutton
3333
- sphinx-gallery
3434
# Extras
35+
- fiona
3536
- pre-commit
3637
- pykdtree
3738
- ruff

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ classifiers = [
3939
'Programming Language :: Python :: 3.11',
4040
'Programming Language :: Python :: 3.12',
4141
'Programming Language :: Python :: 3.13',
42+
'Programming Language :: Python :: 3.14',
4243
'Programming Language :: Python :: 3 :: Only',
4344
'Topic :: Scientific/Engineering',
4445
'Topic :: Scientific/Engineering :: GIS',

0 commit comments

Comments
 (0)