From 4c7fd8cda6bc5743a285235446e90dbb6b601a02 Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Wed, 9 Apr 2025 09:54:32 +0100 Subject: [PATCH] run.py only run if fonts found --- .ci/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/run.py b/.ci/run.py index 3b95137c6..895bbb0b1 100644 --- a/.ci/run.py +++ b/.ci/run.py @@ -26,6 +26,9 @@ def main(): for directory, check_type in directory_check_types(args.branch): out = os.path.join("out", os.path.basename(directory)) fonts = glob(os.path.join(directory, "*.ttf")) + if not fonts: + print(f"Skipping {directory} because no fonts were found") + continue qa_cmd_prefix = ["gftools", "qa", "-f"] + fonts + ["-o", out] if args.pr_number: -- 2.47.2