From db68fba3f40c94887a186a3a1ac161351d7cca84 Mon Sep 17 00:00:00 2001 From: fynnbe Date: Fri, 10 Oct 2025 11:30:08 +0200 Subject: [PATCH 1/2] update model testing deps --- pyproject.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c2393c11..440563aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,13 +44,15 @@ onnx = ["onnxruntime"] pytorch = ["torch>=1.6,<3", "torchvision>=0.21", "keras>=3.0,<4"] tensorflow = ["tensorflow", "keras>=2.15,<4"] dev = [ - "cellpose", # for model testing + # "biapy", # pins core exactly + "careamics", + "cellpose", # for model testing "crick", "httpx", "jupyter", "keras>=3.0,<4", "matplotlib", - "monai", # for model testing + "monai", # for model testing "numpy", "onnx", "onnxruntime", @@ -61,7 +63,8 @@ dev = [ "pytest-cov", "pytest", "python-dotenv", - "segment-anything", # for model testing + "segment-anything", # for model testing + # "stardist", # for model testing and stardist postprocessing # TODO: add updated stardist to dev env "tensorflow", "timm", # for model testing "torch>=1.6,<3", From 440f0b09184ded4dccebefcd114de5ca2069bcab Mon Sep 17 00:00:00 2001 From: fynnbe Date: Fri, 10 Oct 2025 11:30:29 +0200 Subject: [PATCH 2/2] quiet conda output in CI --- src/bioimageio/core/_resource_tests.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bioimageio/core/_resource_tests.py b/src/bioimageio/core/_resource_tests.py index 6b5764e9..66adfea2 100644 --- a/src/bioimageio/core/_resource_tests.py +++ b/src/bioimageio/core/_resource_tests.py @@ -69,6 +69,7 @@ from bioimageio.core.io import save_tensor from ._prediction_pipeline import create_prediction_pipeline +from ._settings import settings from .axis import AxisId, BatchSize from .common import MemberId, SupportedWeightsFormat from .digest_spec import get_test_input_sample, get_test_output_sample @@ -394,7 +395,15 @@ def _test_in_env( _ = path.write_bytes(encoded_env) logger.debug("written conda env to {}", path) run_command( - [CONDA_CMD, "env", "create", f"--file={path}", f"--name={env_name}"] + [ + CONDA_CMD, + "env", + "create", + "--yes", + f"--file={path}", + f"--name={env_name}", + ] + + (["--quiet"] if settings.CI else []) ) run_command([CONDA_CMD, "activate", env_name]) except Exception as e: