From a8e74ebdc5e63175b722880f8e4555dad5935a1c Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:49:02 +0100 Subject: [PATCH] Trigger CI if `tiny_model_summary.json` is modified (#27175) fix Co-authored-by: ydshieh --- utils/tests_fetcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/tests_fetcher.py b/utils/tests_fetcher.py index 2fd866e9d8d..b2f9d2f8cec 100644 --- a/utils/tests_fetcher.py +++ b/utils/tests_fetcher.py @@ -949,6 +949,10 @@ def infer_tests_to_run( if "setup.py" in modified_files: test_files_to_run = ["tests", "examples"] repo_utils_launch = True + # in order to trigger pipeline tests even if no code change at all + elif "tests/utils/tiny_model_summary.json" in modified_files: + test_files_to_run = ["tests"] + repo_utils_launch = any(f.split(os.path.sep)[0] == "utils" for f in modified_files) else: # All modified tests need to be run. test_files_to_run = [