Add examples to tests to run when setup.py is modified (#25437)

fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2023-08-10 16:42:05 +02:00
committed by GitHub
parent e7b001db4f
commit 2d6839eaa6

View File

@@ -690,7 +690,7 @@ def infer_tests_to_run(output_file, diff_with_last_commit=False, filter_models=T
# Grab the corresponding test files: # Grab the corresponding test files:
if "setup.py" in modified_files: if "setup.py" in modified_files:
test_files_to_run = ["tests"] test_files_to_run = ["tests", "examples"]
repo_utils_launch = True repo_utils_launch = True
else: else:
# All modified tests need to be run. # All modified tests need to be run.