From 1fb44f943f946fba2566f4483c505f5d6c8b62c9 Mon Sep 17 00:00:00 2001 From: Zain Rizvi Date: Thu, 4 May 2023 16:44:05 -0500 Subject: [PATCH] Silently skip when cache wasn't created --- .github/scripts/pytest_cache.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/scripts/pytest_cache.py b/.github/scripts/pytest_cache.py index f3e7c9a7e0e0e..df310ff1d2d1e 100644 --- a/.github/scripts/pytest_cache.py +++ b/.github/scripts/pytest_cache.py @@ -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?