From 2d6839eaa666a106e3fa338864143bf2ef22f976 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:42:05 +0200 Subject: [PATCH] Add `examples` to tests to run when `setup.py` is modified (#25437) 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 f5a2904027..aee7a3cbb5 100644 --- a/utils/tests_fetcher.py +++ b/utils/tests_fetcher.py @@ -690,7 +690,7 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filter_models=T # Grab the corresponding test files: if "setup.py" in modified_files: - test_files_to_run = ["tests"] + test_files_to_run = ["tests", "examples"] repo_utils_launch = True else: # All modified tests need to be run.