mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
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:
parent
2963e196ee
commit
a8e74ebdc5
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user