mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
fix(ci, nvidia): do not use module level pytest skip for now
This commit is contained in:
parent
752fd3b1c1
commit
d1b300ead9
3 changed files with 14 additions and 14 deletions
|
@ -3,3 +3,14 @@
|
|||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
# Reusable skip decorator for NVIDIA tests in GitHub Actions
|
||||
# Adding this in conftest.py as a module level skip statement causes pytest to error
|
||||
# out in certain cases.
|
||||
skip_in_github_actions = pytest.mark.skipif(
|
||||
os.environ.get("GITHUB_ACTIONS") == "true", reason="Skipping NVIDIA tests in GitHub Actions environment"
|
||||
)
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
# Skip all tests in this directory when running in GitHub Actions
|
||||
in_github_actions = os.environ.get("GITHUB_ACTIONS") == "true"
|
||||
if in_github_actions:
|
||||
pytest.skip("Skipping NVIDIA tests in GitHub Actions environment", allow_module_level=True)
|
|
@ -7,12 +7,15 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from . import skip_in_github_actions
|
||||
|
||||
# How to run this test:
|
||||
#
|
||||
# LLAMA_STACK_CONFIG="nvidia" pytest -v tests/integration/providers/nvidia/test_datastore.py
|
||||
|
||||
|
||||
# nvidia provider only
|
||||
@skip_in_github_actions
|
||||
@pytest.mark.parametrize(
|
||||
"provider_id",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue