From f91f9fce22bc354cd3d7c1305e44c522957c3cfe Mon Sep 17 00:00:00 2001 From: theissenhelen Date: Fri, 2 Aug 2024 13:20:55 +0100 Subject: [PATCH] test: skip if on hpc --- tests/create/test_create.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/create/test_create.py b/tests/create/test_create.py index faaf04cf..9304dd16 100755 --- a/tests/create/test_create.py +++ b/tests/create/test_create.py @@ -23,6 +23,8 @@ from anemoi.datasets.create import Creator from anemoi.datasets.data.stores import open_zarr +GITHUB_ACTION = os.getenv("GITHUB_ACTION") + TEST_DATA_ROOT = "https://object-store.os-api.cci1.ecmwf.int/ml-tests/test-data/anemoi-datasets/create/" @@ -209,6 +211,7 @@ def compare(self): compare_statistics(self.ds_output, self.ds_reference) +@pytest.mark.skipIf(GITHUB_ACTION == "downstream-ci-hpc", reason="Skipping on self-hosted runner") @pytest.mark.parametrize("name", NAMES) @mockup_from_source def test_run(name):