Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
72eaaf6d
Unverified
Commit
72eaaf6d
authored
Nov 22, 2022
by
Sylvain Gugger
Committed by
GitHub
Nov 22, 2022
Browse files
Fix nightly runs (#20352)
* Fix nightly runs * Fix type * Address review comment
parent
f3a1efd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
.circleci/create_circleci_config.py
.circleci/create_circleci_config.py
+5
-1
No files found.
.circleci/create_circleci_config.py
View file @
72eaaf6d
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment