Skip to content

Commit

Permalink
Skip test_process_workflow on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Nov 18, 2024
1 parent 4ded6d8 commit 94dae18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",)]
)
Expand Down
6 changes: 6 additions & 0 deletions core/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 94dae18

Please sign in to comment.