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:
parent
2585a57dc7
commit
2db05de8fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue