Trigger CI if tiny_model_summary.json is modified (#27175)

fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar 2023-10-31 14:49:02 +01:00 committed by GitHub
parent 2963e196ee
commit a8e74ebdc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [