Skip to content

Commit

Permalink
Merge pull request #31 from ecmwf/ci/pin-python-versions
Browse files Browse the repository at this point in the history
ci: extend python versions
  • Loading branch information
HCookie authored Oct 23, 2024
2 parents c6acdc4 + 4e9d57b commit be597a8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
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

0 comments on commit be597a8

Please sign in to comment.