From 51e6526b3896285f898cc52989e005999bf1c2a3 Mon Sep 17 00:00:00 2001 From: Arthur <48595927+ArthurZucker@users.noreply.github.com> Date: Fri, 30 Aug 2024 19:49:23 +0200 Subject: [PATCH] Fix red amin (#33220) * fix * oups * oups * proper fix * forget about that * arf * ish --- .circleci/create_circleci_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index 9f35b3055..469d32fd8 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -346,7 +346,7 @@ def create_circleci_config(folder=None): if folder is None: folder = os.getcwd() os.environ["test_preparation_dir"] = folder - jobs = [k for k in ALL_TESTS if len(k.tests_to_run) > 0] + jobs = [k for k in ALL_TESTS if os.path.isfile(os.path.join("test_preparation" , f"{k.job_name}_test_list.txt") )] print("The following jobs will be run ", jobs) if len(jobs) == 0: @@ -358,7 +358,7 @@ def create_circleci_config(folder=None): # Only used to accept the parameters from the trigger "nightly": {"type": "boolean", "default": False}, "tests_to_run": {"type": "string", "default": ''}, - **{j.job_name + "_test_list":{"type":"string", "default":''} for j in ALL_TESTS}, + **{j.job_name + "_test_list":{"type":"string", "default":''} for j in jobs}, }, "jobs" : {j.job_name: j.to_dict() for j in jobs}, "workflows": {"version": 2, "run_tests": {"jobs": [j.job_name for j in jobs]}}