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
ee407024
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "78a2b19fc84ed55c65f4bf20a901edb7ceb73c5f"
Unverified
Commit
ee407024
authored
Aug 31, 2022
by
Lysandre Debut
Committed by
GitHub
Aug 31, 2022
Browse files
Update location identification (#18834)
parent
e4910213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
.github/workflows/add-model-like.yml
.github/workflows/add-model-like.yml
+6
-4
No files found.
.github/workflows/add-model-like.yml
View file @
ee407024
...
@@ -41,10 +41,12 @@ jobs:
...
@@ -41,10 +41,12 @@ jobs:
run
:
|
run
:
|
. ~/venv/bin/activate
. ~/venv/bin/activate
python setup.py develop
python setup.py develop
transformer_loc=$(pip show transformers | grep "Location: " | cut -c11-)
transformers_install=$(pip list -e | grep transformers)
transformer_repo_loc=$(pwd .)
transformers_install_array=($transformers_install)
if [ "$transformer_loc" != "$transformer_repo_loc/src" ]; then
transformers_loc=${transformers_install_array[-1]}
echo "transformers is from $transformer_loc but it shoud be from $transformer_repo_loc/src."
transformers_repo_loc=$(pwd .)
if [ "$transformers_loc" != "$transformers_repo_loc" ]; then
echo "transformers is from $transformers_loc but it shoud be from $transformers_repo_loc/src."
echo "A fix is required. Stop testing."
echo "A fix is required. Stop testing."
exit 1
exit 1
fi
fi
...
...
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