mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Previously, we were using 8.0.0rc1. In particular, this upgrade means we need to explicitly import more rules, as they've been moved out of the core bazel repo.
30 lines
546 B
Python
30 lines
546 B
Python
load("@codegen_deps//:requirements.bzl", "requirement")
|
|
load("@rules_python//python:defs.bzl", "py_library", "py_test")
|
|
|
|
py_library(
|
|
name = "utils",
|
|
testonly = True,
|
|
srcs = ["utils.py"],
|
|
deps = [
|
|
"//misc/codegen/lib",
|
|
requirement("pytest"),
|
|
],
|
|
)
|
|
|
|
[
|
|
py_test(
|
|
name = src[:-len(".py")],
|
|
size = "small",
|
|
srcs = [src],
|
|
deps = [
|
|
":utils",
|
|
"//misc/codegen/generators",
|
|
],
|
|
)
|
|
for src in glob(["test_*.py"])
|
|
]
|
|
|
|
test_suite(
|
|
name = "test",
|
|
)
|