Skip to content

Commit

Permalink
ci: skip test_create on self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
theissenhelen committed Aug 2, 2024
1 parent 6153584 commit b51c978
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/create/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from anemoi.datasets.data.stores import open_zarr

IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
SELF_HOSTED_RUNNER = os.getenv("RUNNER_TYPE") == "self-hosted"

TEST_DATA_ROOT = "https://object-store.os-api.cci1.ecmwf.int/ml-tests/test-data/anemoi-datasets/create/"

Expand Down Expand Up @@ -211,7 +212,7 @@ def compare(self):
compare_statistics(self.ds_output, self.ds_reference)


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
@pytest.mark.skipif(IN_GITHUB_ACTIONS and SELF_HOSTED_RUNNER, reason="Test doesn't work in Github Actions.")
@pytest.mark.parametrize("name", NAMES)
@mockup_from_source
def test_run(name):
Expand Down

0 comments on commit b51c978

Please sign in to comment.