From 155c756d082163d7b46c4868ac1bd26f35808172 Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Sun, 28 Sep 2025 13:57:31 -0400 Subject: [PATCH] chore: skip nvidia datastore tests when nvidia datastore is not enabled --- tests/integration/providers/nvidia/test_datastore.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/providers/nvidia/test_datastore.py b/tests/integration/providers/nvidia/test_datastore.py index 5cddd77814..ebae02bdd1 100644 --- a/tests/integration/providers/nvidia/test_datastore.py +++ b/tests/integration/providers/nvidia/test_datastore.py @@ -14,6 +14,13 @@ # LLAMA_STACK_CONFIG="nvidia" pytest -v tests/integration/providers/nvidia/test_datastore.py +@pytest.fixture(autouse=True) +def skip_if_no_nvidia_provider(llama_stack_client): + provider_types = {p.provider_type for p in llama_stack_client.providers.list() if p.api == "datasetio"} + if "remote::nvidia" not in provider_types: + pytest.skip("datasetio=remote::nvidia provider not configured, skipping") + + # nvidia provider only @skip_in_github_actions @pytest.mark.parametrize(