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: extend python versions #31

Merged
merged 4 commits into from
Oct 23, 2024
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 .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
checks:
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", 3.11", "3.12"]
uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2
with:
python-version: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
checks:
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
uses: ecmwf-actions/reusable-workflows/.github/workflows/qa-pytest-pyproject.yml@v2
with:
python-version: ${{ matrix.python-version }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Keep it human-readable, your future self will thank you!
- Add missing classes in checkpoint handling
- Rename Condition to State [#24](https://github.com/ecmwf/anemoi-inference/pull/24)
- Fix pre-commit regex
- ci: extend python versions to include 3.11 and 3.12 [#31] (https://github.com/ecmwf/anemoi-inference/pull/31)

### Removed

Expand Down
3 changes: 1 addition & 2 deletions src/anemoi/inference/checkpoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def validate_environment(
*,
exempt_packages: list[str] | None = None,
) -> bool:
"""
Validate environment of the checkpoint against the current environment.
"""Validate environment of the checkpoint against the current environment.

Parameters
----------
Expand Down
3 changes: 1 addition & 2 deletions src/anemoi/inference/checkpoint/metadata/version_0_0_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@


class Version_0_0_0(Metadata):
"""
Reference for very old checkpoints
"""Reference for very old checkpoints
Will not work and need to be updated
"""

Expand Down
4 changes: 1 addition & 3 deletions src/anemoi/inference/checkpoint/metadata/version_0_1_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def __init__(self, metadata):

@cached_property
def _dataset(self):
"""
Part of the metadata that refers to the zarr dataset
"""
"""Part of the metadata that refers to the zarr dataset."""
return self._metadata["dataset"]

@cached_property
Expand Down
3 changes: 1 addition & 2 deletions src/anemoi/inference/checkpoint/metadata/version_0_2_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@


class DataRequest:
"""
Base class for all data requests.
"""Base class for all data requests.

Data requests describe operations on the input data that are needed to prepare it for inference.
The same operations that were applied to the training dataset should be applied to the input data.
Expand Down
Loading