From 7e36d60026862750bc3dd5dfb39052a48e1ec5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Walter?= Date: Tue, 4 Apr 2023 14:29:22 +0200 Subject: [PATCH] Fix resources passes if resources summary is empty --- scripts/check_resources.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/check_resources.py b/scripts/check_resources.py index 82e4bf760..2eeba6fbe 100644 --- a/scripts/check_resources.py +++ b/scripts/check_resources.py @@ -102,10 +102,7 @@ def main(): logger.info(f"Resources summary:\n{resources_summary}") #%% Compare local test run with base branch - if ( - current_name in resources_summary.index - and base_branch_name in resources_summary.index - ): + if ({current_name, base_branch_name}).issubset(set(all_resources.head_branch)): tests_with_diff = ( all_resources.loc[ lambda df: df.head_branch.isin([current_name, base_branch_name])