mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-03 19:57:35 +00:00
chore: skip nvidia datastore tests when nvidia datastore is not enabled
This commit is contained in:
parent
65f7b81e98
commit
155c756d08
1 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,13 @@ from . import skip_in_github_actions
|
|||
# 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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue