diff --git a/core/tests/test_process.py b/core/tests/test_process.py index b606fe10..381971f6 100644 --- a/core/tests/test_process.py +++ b/core/tests/test_process.py @@ -10,6 +10,8 @@ from napari_workflows import Workflow from pytest import FixtureRequest +from tests.utils import skip_on_github_ci + from .params import parameterized root = Path(__file__).parent / "data" @@ -108,6 +110,7 @@ def test_process_deconvolution(background: Any): assert slice.data.ndim == 3 +@skip_on_github_ci() @pytest.mark.parametrize( ["workflow_name"], [("image_workflow",), ("table_workflow",)] ) diff --git a/core/tests/utils.py b/core/tests/utils.py index c9744a03..b1408c31 100644 --- a/core/tests/utils.py +++ b/core/tests/utils.py @@ -4,6 +4,8 @@ from lls_core.cmds.__main__ import app import npy2bdv from aicsimageio import AICSImage +from pytest.mark import skipif +import os def invoke(args: Sequence[str]): CliRunner().invoke(app, args, catch_exceptions=False) @@ -15,3 +17,7 @@ def valid_image_path(path: Path) -> bool: else: AICSImage(path).get_image_data() return True + + +def skip_on_github_ci(): + return skipif('GITHUB_ACTIONS' in os.environ)