diff --git a/tests/grib/test_grib_geography.py b/tests/grib/test_grib_geography.py index 9199bdca..f28b39d1 100644 --- a/tests/grib/test_grib_geography.py +++ b/tests/grib/test_grib_geography.py @@ -23,6 +23,7 @@ from earthkit.data import concat from earthkit.data.utils import projections from earthkit.data.utils.testing import ( + IN_GITHUB, NO_ECCODES_GRID, NO_GEO, check_array, @@ -362,9 +363,7 @@ def test_grib_latlon_various_grids_1(fl_type, filename, expected_shape, expected assert np.allclose(np.asarray(ds[0].geography.area()), np.asarray(expected_area)) -# @pytest.mark.skip( -# "This test is currently failing because the GRIB field geography is not correctly handled in ecCodes." -# ) +@pytest.mark.skipif(IN_GITHUB, reason="Skipping test on GitHub CI") @pytest.mark.parametrize( "filename,expected_shape, expected_lat, expected_lon, expected_area", [ diff --git a/tests/grib/test_grib_gridspec.py b/tests/grib/test_grib_gridspec.py index 98a7c673..80a0765a 100644 --- a/tests/grib/test_grib_gridspec.py +++ b/tests/grib/test_grib_gridspec.py @@ -16,7 +16,7 @@ from earthkit.data import FieldList, from_source from earthkit.data.core.temporary import temp_file -from earthkit.data.utils.testing import earthkit_remote_test_data_file, earthkit_test_data_file +from earthkit.data.utils.testing import IN_GITHUB, earthkit_remote_test_data_file, earthkit_test_data_file def _make_gridspec_list(grid_types): @@ -45,6 +45,7 @@ def gridspec_list(grid_types): yield (item["metadata"], item["gridspec"], item["file"]) +@pytest.mark.skipif(IN_GITHUB, reason="Skipping test on GitHub CI") def test_grib_gridspec_from_file(): ds = from_source( "file", @@ -64,6 +65,7 @@ def test_grib_gridspec_from_file(): assert gs == ref +@pytest.mark.skipif(IN_GITHUB, reason="Skipping test on GitHub CI") @pytest.mark.parametrize( "input_file", [ diff --git a/tests/xr_engine/test_xr_engine_grid.py b/tests/xr_engine/test_xr_engine_grid.py index 453c13f2..320eb239 100644 --- a/tests/xr_engine/test_xr_engine_grid.py +++ b/tests/xr_engine/test_xr_engine_grid.py @@ -17,7 +17,7 @@ from earthkit.data import from_source from earthkit.data.utils import ensure_iterable -from earthkit.data.utils.testing import earthkit_remote_test_data_file, earthkit_test_data_file +from earthkit.data.utils.testing import IN_GITHUB, earthkit_remote_test_data_file, earthkit_test_data_file def to_tuple(x): @@ -35,6 +35,7 @@ def grid_list(files=None): @pytest.mark.cache +@pytest.mark.skipif(IN_GITHUB, reason="Skipping test on GitHub CI") # @pytest.mark.parametrize("allow_holes", [False, True]) # @pytest.mark.parametrize("lazy_load", [True, False]) @pytest.mark.parametrize("allow_holes", [False]) @@ -94,6 +95,7 @@ def test_xr_engine_add_geo_coords(allow_holes, lazy_load, add_geo_coords): @pytest.mark.cache +@pytest.mark.skipif(IN_GITHUB, reason="Skipping test on GitHub CI") @pytest.mark.parametrize("allow_holes", [False, True]) @pytest.mark.parametrize("lazy_load", [True, False]) def test_xr_engine_gridspec(allow_holes, lazy_load):