Skip to content

Commit

Permalink
infra: tolerate partner package move in ci (#18355)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Mar 1, 2024
1 parent f481cbb commit c7d5ed6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
dirs_to_run["extended-test"].add(dir_)
elif file.startswith("libs/partners"):
partner_dir = file.split("/")[2]
if os.path.isdir(f"libs/partners/{partner_dir}"):
if os.path.isdir(f"libs/partners/{partner_dir}") and os.listdir(
f"libs/partners/{partner_dir}"
) != ["README.md"]:
dirs_to_run["test"].add(f"libs/partners/{partner_dir}")
# Skip if the directory was deleted
# Skip if the directory was deleted or is just a tombstone readme
elif file.startswith("libs/"):
raise ValueError(
f"Unknown lib: {file}. check_diff.py likely needs "
Expand Down

0 comments on commit c7d5ed6

Please sign in to comment.