From 3ffbbff9a381093ae84f87b92bd76a09ea5843fe Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 15 Nov 2024 13:46:01 +0000 Subject: [PATCH] skipping long tests --- tests/xarray/test_samples.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/xarray/test_samples.py b/tests/xarray/test_samples.py index 64c35e8f..8eb3542e 100644 --- a/tests/xarray/test_samples.py +++ b/tests/xarray/test_samples.py @@ -8,6 +8,8 @@ # nor does it submit to any jurisdiction. +import os + import pytest import requests import xarray as xr @@ -50,6 +52,9 @@ def _test_samples(n, check_skip=True): @pytest.mark.parametrize("n", SAMPLES) +# it would be nice to use a @pytest.mark.slow and configure this globally +# this could be done when refactoring the tests, and setting up canary/nightly builds +@pytest.mark.skipif(not os.environ.get("SLOW_TESTS"), reason="No SLOW_TESTS env var") def test_samples(n): _test_samples(n)