From cf32c941350cb296e4c2c9e26a9274291d515e90 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 9 Nov 2023 22:01:06 +0100 Subject: [PATCH] Run all tests if `circleci/create_circleci_config.py` is modified (#27413) * fix * fix --------- Co-authored-by: ydshieh --- utils/tests_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tests_fetcher.py b/utils/tests_fetcher.py index a60d6a558d..728a76bde0 100644 --- a/utils/tests_fetcher.py +++ b/utils/tests_fetcher.py @@ -948,7 +948,7 @@ def infer_tests_to_run( print(f"\n### IMPACTED FILES ###\n{_print_list(impacted_files)}") # Grab the corresponding test files: - if "setup.py" in modified_files: + if any(x in modified_files for x in ["setup.py", ".circleci/create_circleci_config.py"]): test_files_to_run = ["tests", "examples"] repo_utils_launch = True # in order to trigger pipeline tests even if no code change at all