Skip to content

Commit

Permalink
Silently skip when cache wasn't created
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainRizvi committed May 4, 2023
1 parent d623377 commit 1fb44f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/pytest_cache.py
Expand Up @@ -44,9 +44,8 @@ def main():

# verify the cache dir exists
if not os.path.exists(args.cache_dir):
print(
f"The given pytest cache dir `{args.cache_dir}` does not exist. Skipping upload"
)
print(f"The pytest cache dir `{args.cache_dir}` does not exist. Skipping upload")
return

# TODO: First check if it's even worth uploading a new cache:
# Does the cache even mark any failed tests?
Expand Down

0 comments on commit 1fb44f9

Please sign in to comment.