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])