Fix nightly runs (#20352)

* Fix nightly runs

* Fix type

* Address review comment
This commit is contained in:
Sylvain Gugger 2022-11-22 10:38:38 -05:00 committed by GitHub
parent f3a1efd1cf
commit 72eaaf6d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,11 @@ def create_circleci_config(folder=None):
if len(jobs) > 0:
config = {"version": "2.1"}
config["parameters"] = {"tests_to_run": {"type": "string", "default": test_list}}
config["parameters"] = {
# Only used to accept the parameters from the trigger
"nightly": {"type": "boolean", "default": False},
"tests_to_run": {"type": "string", "default": test_list},
}
config["jobs"] = {j.job_name: j.to_dict() for j in jobs}
config["workflows"] = {"version": 2, "run_tests": {"jobs": [j.job_name for j in jobs]}}
with open(os.path.join(folder, "generated_config.yml"), "w") as f: