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
12b908c6
"...resnet50_tensorflow.git" did not exist on "35daa566d1d30e8150504506a62146f1335e28e9"
Unverified
Commit
12b908c6
authored
Jul 17, 2023
by
Sylvain Gugger
Committed by
GitHub
Jul 17, 2023
Browse files
Fix the fetch of all example tests (#24864)
parent
e9ad5130
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
.circleci/create_circleci_config.py
.circleci/create_circleci_config.py
+2
-2
No files found.
.circleci/create_circleci_config.py
View file @
12b908c6
...
@@ -581,13 +581,13 @@ def create_circleci_config(folder=None):
...
@@ -581,13 +581,13 @@ def create_circleci_config(folder=None):
example_file
=
os
.
path
.
join
(
folder
,
"examples_test_list.txt"
)
example_file
=
os
.
path
.
join
(
folder
,
"examples_test_list.txt"
)
if
os
.
path
.
exists
(
example_file
)
and
os
.
path
.
getsize
(
example_file
)
>
0
:
if
os
.
path
.
exists
(
example_file
)
and
os
.
path
.
getsize
(
example_file
)
>
0
:
with
open
(
example_file
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
with
open
(
example_file
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
example_tests
=
f
.
read
()
.
split
(
" "
)
example_tests
=
f
.
read
()
for
job
in
EXAMPLES_TESTS
:
for
job
in
EXAMPLES_TESTS
:
framework
=
job
.
name
.
replace
(
"examples_"
,
""
).
replace
(
"torch"
,
"pytorch"
)
framework
=
job
.
name
.
replace
(
"examples_"
,
""
).
replace
(
"torch"
,
"pytorch"
)
if
example_tests
==
"all"
:
if
example_tests
==
"all"
:
job
.
tests_to_run
=
[
f
"examples/
{
framework
}
"
]
job
.
tests_to_run
=
[
f
"examples/
{
framework
}
"
]
else
:
else
:
job
.
tests_to_run
=
[
f
for
f
in
example_tests
if
f
.
startswith
(
f
"examples/
{
framework
}
"
)]
job
.
tests_to_run
=
[
f
for
f
in
example_tests
.
split
(
" "
)
if
f
.
startswith
(
f
"examples/
{
framework
}
"
)]
if
len
(
job
.
tests_to_run
)
>
0
:
if
len
(
job
.
tests_to_run
)
>
0
:
jobs
.
append
(
job
)
jobs
.
append
(
job
)
...
...
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