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
79588e6f
Unverified
Commit
79588e6f
authored
Aug 10, 2020
by
Lysandre Debut
Committed by
GitHub
Aug 10, 2020
Browse files
Ci GitHub caching (#6382)
* Cache Github Actions CI * Remove useless file
parent
b99098ab
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
20 deletions
+26
-20
.github/workflows/github-push.yml
.github/workflows/github-push.yml
+0
-19
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+8
-0
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+8
-0
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+10
-1
No files found.
.github/workflows/github-push.yml
deleted
100644 → 0
View file @
b99098ab
name
:
GitHub-hosted runner
on
:
push
jobs
:
check_code_quality
:
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
# - name: Install dependencies
# run: |
# pip install .[tf,torch,quality]
.github/workflows/github-torch-hub.yml
View file @
79588e6f
...
...
@@ -18,6 +18,14 @@ jobs:
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Loading cache
uses
:
actions/cache@v2
id
:
cache
with
:
path
:
~/.cache/pip
key
:
v0-torch_hub-${{ hashFiles('setup.py') }}
-
name
:
Install dependencies
run
:
|
pip install --upgrade pip
...
...
.github/workflows/self-push.yml
View file @
79588e6f
...
...
@@ -25,6 +25,14 @@ jobs:
-
name
:
Current dir
run
:
pwd
-
run
:
nvidia-smi
-
name
:
Loading cache.
uses
:
actions/cache@v2
id
:
cache
with
:
path
:
.env
key
:
v0-tests_tf_torch_gpu-${{ hashFiles('setup.py') }}
-
name
:
Create new python env (on self-hosted runners we have to handle isolation ourselves)
run
:
|
python -m venv .env
...
...
.github/workflows/self-scheduled.yml
View file @
79588e6f
...
...
@@ -13,6 +13,14 @@ jobs:
runs-on
:
self-hosted
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Loading cache.
uses
:
actions/cache@v2
id
:
cache
with
:
path
:
.env
key
:
v0-slow_tests_tf_torch_gpu-${{ hashFiles('setup.py') }}
-
name
:
Python version
run
:
|
which python
...
...
@@ -22,6 +30,7 @@ jobs:
run
:
pwd
-
run
:
nvidia-smi
-
name
:
Create new python env (on self-hosted runners we have to handle isolation ourselves)
if
:
steps.cache.outputs.cache-hit != 'true'
run
:
|
python -m venv .env
source .env/bin/activate
...
...
@@ -32,7 +41,7 @@ jobs:
run
:
|
source .env/bin/activate
pip install --upgrade pip
pip install torch!=1.6.0
--no-cache-dir
pip install torch!=1.6.0
pip install .[sklearn,testing]
-
name
:
Are GPUs recognized by our DL frameworks
...
...
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