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
6984848e
Unverified
Commit
6984848e
authored
Apr 18, 2022
by
Joao Gante
Committed by
GitHub
Apr 18, 2022
Browse files
Create empty venv on cache miss (#16816)
parent
43814483
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+6
-1
.github/workflows/update_metdata.yml
.github/workflows/update_metdata.yml
+6
-0
No files found.
.github/workflows/github-torch-hub.yml
View file @
6984848e
...
...
@@ -29,10 +29,15 @@ jobs:
path
:
~/venv/
key
:
v1-torch_hub-${{ hashFiles('setup.py') }}
-
name
:
Create virtual environment on cache miss
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
python -m venv ~/venv && . ~/venv/bin/activate
pip install --upgrade pip
-
name
:
Install dependencies
run
:
|
. ~/venv/bin/activate
pip install --upgrade pip
# install torch-hub specific dependencies
pip install -e git+https://github.com/huggingface/transformers.git#egg=transformers[torchhub]
# no longer needed
...
...
.github/workflows/update_metdata.yml
View file @
6984848e
...
...
@@ -23,6 +23,12 @@ jobs:
path
:
~/venv/
key
:
v2-metadata-${{ hashFiles('setup.py') }}
-
name
:
Create virtual environment on cache miss
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
python -m venv ~/venv && . ~/venv/bin/activate
pip install --upgrade pip
-
name
:
Setup environment
run
:
|
. ~/venv/bin/activate
...
...
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