"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "9112520b15722fe113c9119f0c4524653e37becc"
Unverified Commit 72eaaf6d authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix nightly runs (#20352)

* Fix nightly runs

* Fix type

* Address review comment
parent f3a1efd1
...@@ -385,7 +385,11 @@ def create_circleci_config(folder=None): ...@@ -385,7 +385,11 @@ def create_circleci_config(folder=None):
if len(jobs) > 0: if len(jobs) > 0:
config = {"version": "2.1"} 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["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]}} 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: with open(os.path.join(folder, "generated_config.yml"), "w") as f:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment