Files
ray-project--ray/python/ray/tests/unit/BUILD.bazel
T
2026-07-13 13:17:40 +08:00

64 lines
1.3 KiB
Python

load("@rules_python//python:defs.bzl", "py_library", "py_test")
load("//bazel:python.bzl", "py_test_run_all_subdirectory")
py_library(
name = "conftest",
srcs = ["conftest.py"],
)
py_test_run_all_subdirectory(
size = "small",
include = glob(["test_*.py"]),
# These tests require data files, so they have their own targets below.
exclude = [
"test_cli_output_context.py",
"test_runtime_env_validation.py",
],
extra_srcs = [],
tags = [
"exclusive",
"small_size_python_tests",
"team:core",
],
deps = [
":conftest",
"//:ray_lib",
],
)
py_test(
name = "test_cli_output_context",
size = "small",
srcs = ["test_cli_output_context.py"],
data = [
"//python/ray/autoscaler:cli_output_context_test_data",
],
tags = [
"exclusive",
"small_size_python_tests",
"team:core",
],
deps = [
":conftest",
"//:ray_lib",
],
)
py_test(
name = "test_runtime_env_validation",
size = "small",
srcs = ["test_runtime_env_validation.py"],
data = glob([
"test_runtime_env_validation_*_schema.json",
]),
tags = [
"exclusive",
"small_size_python_tests",
"team:core",
],
deps = [
":conftest",
"//:ray_lib",
],
)