ci: Account for PR_NUMBER being set to an empty string

This is the case for CI after merge that is no longer associated with a
pull request.
This commit is contained in:
Trevor Gross 2025-04-18 06:43:19 +00:00 committed by Trevor Gross
parent 2585a57dc7
commit 2db05de8fd

View file

@ -205,7 +205,7 @@ class Context:
skip_tests = False
error_on_many_tests = False
if pr_number is not None:
if pr_number is not None and len(pr_number) > 0:
pr = PrInfo.load(pr_number)
skip_tests = pr.contains_directive(SKIP_EXTENSIVE_DIRECTIVE)
error_on_many_tests = not pr.contains_directive(