Skip to content

Commit

Permalink
Fix resources passes if resources summary is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Apr 4, 2023
1 parent 83e7e96 commit 7e36d60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/check_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 7e36d60

Please sign in to comment.