chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
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",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user