Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add Python 3.13 tests #2547

Merged
merged 3 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "Torchgeo DevContainer",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"image": "mcr.microsoft.com/devcontainers/python:3.13",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Install pip dependencies
run: pip install build
- name: List pip dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand All @@ -48,7 +48,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: Clone repo
uses: actions/[email protected]
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tutorials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: setup-python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.13'
- name: Cache dependencies
uses: actions/[email protected]
id: cache
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ version: 2
build:
os: ubuntu-lts-latest
tools:
# Sphinx 6.1 and older do not support Python 3.13+
python: '3.12'

# Configuration of the Python environment to be used
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: GIS",
]
Expand Down Expand Up @@ -247,6 +248,8 @@ filterwarnings = [
# https://github.com/pytorch/pytorch/issues/136264
"ignore:__array__ implementation doesn't accept a copy keyword:DeprecationWarning",
"ignore:__array_wrap__ must accept context and return_scalar arguments:DeprecationWarning",
# https://github.com/pydantic/pydantic/pull/11377
"ignore:Failing to pass a value to the 'type_params' parameter of 'typing.*' is deprecated:DeprecationWarning:pydantic",

# Expected warnings
# Lightning warns us about using num_workers=0, but it's faster on macOS
Expand Down