Skip to content

Commit

Permalink
fix: skip if github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
theissenhelen committed Aug 2, 2024
1 parent f91f9fc commit 6153584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/create/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from anemoi.datasets.create import Creator
from anemoi.datasets.data.stores import open_zarr

GITHUB_ACTION = os.getenv("GITHUB_ACTION")
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"

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

Expand Down Expand Up @@ -211,7 +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.skipif(IN_GITHUB_ACTIONS, 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 6153584

Please sign in to comment.