diff --git a/.github/ci-hpc-config.yml b/.github/ci-hpc-config.yml index cd11ba2..80bae95 100644 --- a/.github/ci-hpc-config.yml +++ b/.github/ci-hpc-config.yml @@ -5,4 +5,4 @@ build: parallel: 64 pytest_cmd: | - python -m pytest -vv -m 'not notebook and not no_cache_init' --cov=. --cov-report=xml + python -m pytest -vv -m 'not notebook and not no_cache_init and not skip_on_hpc' --cov=. --cov-report=xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 72738a8..5800f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Keep it human-readable, your future self will thank you! ### Added - Optional renaming of subcommands via `command` attribute [#34](https://github.com/ecmwf/anemoi-utils/pull/34) +- `skip_on_hpc` pytest marker for tests that should not be run on HPC [36](https://github.com/ecmwf/anemoi-utils/pull/36) ## [0.4.1](https://github.com/ecmwf/anemoi-utils/compare/0.4.0...0.4.1) - 2024-10-23 diff --git a/pyproject.toml b/pyproject.toml index 93d6cb8..3848964 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,3 +82,8 @@ scripts.anemoi-utils = "anemoi.utils.__main__:main" [tool.setuptools_scm] version_file = "src/anemoi/utils/_version.py" + +[tool.pytest.ini_options] +markers = [ + "skip_on_hpc: mark a test that should not be run on HPC", +]