Skip to content

Commit

Permalink
Fix nightly runs (huggingface#20352)
Browse files Browse the repository at this point in the history
* Fix nightly runs

* Fix type

* Address review comment
  • Loading branch information
sgugger authored and Magnus Pierrau committed Dec 15, 2022
1 parent b36de61 commit 053998a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .circleci/create_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 053998a

Please sign in to comment.