Consolidate required CI gate (#115)
All checks were successful
CI / required (push) Successful in 3m55s
All checks were successful
CI / required (push) Successful in 3m55s
This commit is contained in:
@@ -104,11 +104,7 @@ def check_benchmarks_and_ci() -> None:
|
||||
if not (crate / "benches" / f"{name}.rs").is_file():
|
||||
raise SystemExit(f"missing {name} benchmark source")
|
||||
|
||||
workflows = {
|
||||
"imaging-meshing": ROOT / ".gitea" / "workflows" / "imaging-meshing.yml",
|
||||
"jpeg2000": ROOT / ".gitea" / "workflows" / "jpeg2000.yml",
|
||||
"skia": ROOT / ".gitea" / "workflows" / "skia.yml",
|
||||
}
|
||||
workflows = {"consolidated": ROOT / ".gitea" / "workflows" / "ci.yml"}
|
||||
for name, path in workflows.items():
|
||||
if not path.is_file():
|
||||
raise SystemExit(f"missing {name} native-feature workflow")
|
||||
@@ -121,6 +117,10 @@ def check_benchmarks_and_ci() -> None:
|
||||
f"{name} workflow must use only ubuntu-latest, found: "
|
||||
+ ", ".join(unsupported)
|
||||
)
|
||||
text = path.read_text()
|
||||
for marker in ("required-gate", "METACRATE_SKIA_ARCHIVE", "OPENJPEG_PREFIX"):
|
||||
if marker not in text:
|
||||
raise SystemExit(f"{name} workflow is missing {marker}")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
||||
Reference in New Issue
Block a user