Skip to content

Commit bc7a8e6

Browse files
ArthurZuckerBernardZach
authored andcommitted
Fix red amin (huggingface#33220)
* fix * oups * oups * proper fix * forget about that * arf * ish
1 parent d85e4c3 commit bc7a8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/create_circleci_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def create_circleci_config(folder=None):
346346
if folder is None:
347347
folder = os.getcwd()
348348
os.environ["test_preparation_dir"] = folder
349-
jobs = [k for k in ALL_TESTS if len(k.tests_to_run) > 0]
349+
jobs = [k for k in ALL_TESTS if os.path.isfile(os.path.join("test_preparation" , f"{k.job_name}_test_list.txt") )]
350350
print("The following jobs will be run ", jobs)
351351

352352
if len(jobs) == 0:
@@ -358,7 +358,7 @@ def create_circleci_config(folder=None):
358358
# Only used to accept the parameters from the trigger
359359
"nightly": {"type": "boolean", "default": False},
360360
"tests_to_run": {"type": "string", "default": ''},
361-
**{j.job_name + "_test_list":{"type":"string", "default":''} for j in ALL_TESTS},
361+
**{j.job_name + "_test_list":{"type":"string", "default":''} for j in jobs},
362362
},
363363
"jobs" : {j.job_name: j.to_dict() for j in jobs},
364364
"workflows": {"version": 2, "run_tests": {"jobs": [j.job_name for j in jobs]}}

0 commit comments

Comments
 (0)