mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
16 lines
553 B
Python
16 lines
553 B
Python
# 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
|
|
|
|
# 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"
|
|
)
|