Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Run doc notebooks in CI #24816

Merged
merged 20 commits into from
May 17, 2022
Prev Previous commit
Fix
  • Loading branch information
Yard1 committed May 16, 2022
commit 533c90af394deb6c552899c6e1def13d9e383626
6 changes: 3 additions & 3 deletions bazel/python.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load("@bazel_skylib//lib:paths.bzl", "paths")
def py_test_module_list(files, size, deps, extra_srcs, name_suffix="", **kwargs):
for file in files:
# remove .py
name = paths.basename(file)[0] + name_suffix
name = paths.split_extension(file)[0] + name_suffix
if name == file:
basename = basename + "_test"
native.py_test(
Expand All @@ -19,7 +19,7 @@ def py_test_module_list(files, size, deps, extra_srcs, name_suffix="", **kwargs)
def py_test_run_all_subdirectory(include, exclude, extra_srcs, **kwargs):
for file in native.glob(include = include, exclude = exclude, allow_empty=False):
print(file)
basename = paths.basename(file)[0]
basename = paths.split_extension(file)[0]
if basename == file:
basename = basename + "_test"
native.py_test(
Expand All @@ -32,7 +32,7 @@ def py_test_run_all_subdirectory(include, exclude, extra_srcs, **kwargs):
def py_test_run_all_notebooks(include, exclude, **kwargs):
for file in native.glob(include = include, exclude = exclude, allow_empty=False):
print(file)
basename = paths.basename(file)[0]
basename = paths.split_extension(file)[0]
if basename == file:
basename = basename + "_test"
native.py_test(
Expand Down