blob: 84602d2bd61600f744c4ba450dbc3485451c7d2b [file] [log] [blame]
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_python//python:py_test.bzl", "py_test")
load("@rules_python//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
py_test(
name = "runfiles_test",
srcs = ["runfiles_test.py"],
data = [
"//tests/support:current_build_settings",
],
env = {
"BZLMOD_ENABLED": "1" if BZLMOD_ENABLED else "0",
},
deps = ["//python/runfiles"],
)
build_test(
name = "publishing",
targets = [
"//python/runfiles:wheel.publish",
],
)