diff --git a/.github/ci-hpc-config.yml b/.github/ci-hpc-config.yml index 5c27b03..7f7d3e4 100644 --- a/.github/ci-hpc-config.yml +++ b/.github/ci-hpc-config.yml @@ -5,3 +5,6 @@ build: python_dependencies: - ecmwf/anemoi-utils@develop parallel: 64 + + pytest_cmd: | + python -m pytest -vv -m 'not notebook and not no_cache_init' --cov=. --cov-report=xml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b2926b..f089733 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,17 @@ on: - 'develop' tags-ignore: - '**' - paths: - - "src/**" - - "tests/**" + paths-ignore: + - "docs/**" + - "CHANGELOG.md" + - "README.md" # Trigger the workflow on pull request - pull_request: ~ + pull_request: + paths-ignore: + - "docs/**" + - "CHANGELOG.md" + - "README.md" # Trigger the workflow manuallyp instals workflow_dispatch: ~ @@ -21,6 +26,10 @@ on: # Trigger after public PR approved for CI pull_request_target: types: [labeled] + paths-ignore: + - "docs/**" + - "CHANGELOG.md" + - "README.md" jobs: # Run CI including downstream packages on self-hosted runners diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e2c742..68106af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Keep it human-readable, your future self will thank you! ### Changed - Bugfixes for CI - Change Changelog CI to run after successful publish +- pytest for downstream-ci-hpc ### Removed diff --git a/src/anemoi/models/models/encoder_processor_decoder.py b/src/anemoi/models/models/encoder_processor_decoder.py index aa7e8bb..c77db6e 100644 --- a/src/anemoi/models/models/encoder_processor_decoder.py +++ b/src/anemoi/models/models/encoder_processor_decoder.py @@ -108,7 +108,7 @@ def __init__( # Instantiation of model output bounding functions (e.g., to ensure outputs like TP are positive definite) self.boundings = nn.ModuleList( [ - instantiate(cfg, name_to_index=self.data_indices.model.output.name_to_index) + instantiate(cfg, name_to_index=self.data_indices.internal_model.output.name_to_index) for cfg in getattr(model_config.model, "bounding", []) ] )