2022-05-17 10:50:42 +02:00
|
|
|
load("//bazel:python.bzl", "py_test_run_all_notebooks")
|
|
|
|
|
2022-02-12 11:46:03 +01:00
|
|
|
filegroup(
|
|
|
|
name = "tune_examples",
|
2022-02-19 10:19:07 +01:00
|
|
|
srcs = glob(["*.ipynb"]),
|
2022-02-12 11:46:03 +01:00
|
|
|
visibility = ["//doc:__subpackages__"]
|
2022-05-17 10:50:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------
|
|
|
|
# Test all doc/source/tune/examples notebooks.
|
|
|
|
# --------------------------------------------------------------------
|
|
|
|
|
|
|
|
# pbt_ppo_example.ipynb is not tested right now due to large resource
|
|
|
|
# requirements
|
|
|
|
|
|
|
|
py_test_run_all_notebooks(
|
|
|
|
size = "medium",
|
|
|
|
include = ["*.ipynb"],
|
2022-07-09 19:47:21 -07:00
|
|
|
exclude = [
|
|
|
|
"pbt_ppo_example.ipynb",
|
|
|
|
"tune-xgboost.ipynb",
|
2022-07-25 13:40:21 -07:00
|
|
|
"sigopt_example.ipynb", # REGRESSION: no credentials
|
2022-07-09 19:47:21 -07:00
|
|
|
],
|
2022-05-17 10:50:42 +02:00
|
|
|
data = ["//doc/source/tune/examples:tune_examples"],
|
|
|
|
tags = ["exclusive", "team:ml"],
|
|
|
|
)
|
|
|
|
|
|
|
|
# GPU tests
|
|
|
|
py_test_run_all_notebooks(
|
|
|
|
size = "large",
|
|
|
|
include = ["tune-xgboost.ipynb"],
|
|
|
|
exclude = [],
|
|
|
|
data = ["//doc/source/tune/examples:tune_examples"],
|
|
|
|
tags = ["exclusive", "team:ml", "gpu"],
|
2022-07-13 17:50:11 +02:00
|
|
|
)
|