Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
1d5c3a3d
Unverified
Commit
1d5c3a3d
authored
Aug 04, 2020
by
Lysandre Debut
Committed by
GitHub
Aug 04, 2020
Browse files
Test with --no-cache-dir (#6235)
parent
6730ecdd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
.circleci/config.yml
.circleci/config.yml
+7
-7
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+1
-1
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+1
-1
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+1
-1
No files found.
.circleci/config.yml
View file @
1d5c3a3d
...
@@ -11,7 +11,7 @@ jobs:
...
@@ -11,7 +11,7 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,tf-cpu,torch,testing]
-
run
:
sudo pip install .[sklearn,tf-cpu,torch,testing]
--no-cache-dir
-
run
:
sudo pip install codecov pytest-cov
-
run
:
sudo pip install codecov pytest-cov
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ --cov | tee output.txt
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ --cov | tee output.txt
-
run
:
codecov
-
run
:
codecov
...
@@ -29,7 +29,7 @@ jobs:
...
@@ -29,7 +29,7 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,torch,testing]
-
run
:
sudo pip install .[sklearn,torch,testing]
--no-cache-dir
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
-
store_artifacts
:
-
store_artifacts
:
path
:
~/transformers/output.txt
path
:
~/transformers/output.txt
...
@@ -46,7 +46,7 @@ jobs:
...
@@ -46,7 +46,7 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,tf-cpu,testing]
-
run
:
sudo pip install .[sklearn,tf-cpu,testing]
--no-cache-dir
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
-
run
:
python -m pytest -n 8 --dist=loadfile -s ./tests/ | tee output.txt
-
store_artifacts
:
-
store_artifacts
:
path
:
~/transformers/output.txt
path
:
~/transformers/output.txt
...
@@ -76,7 +76,7 @@ jobs:
...
@@ -76,7 +76,7 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,torch,testing]
-
run
:
sudo pip install .[sklearn,torch,testing]
--no-cache-dir
-
run
:
sudo pip install -r examples/requirements.txt
-
run
:
sudo pip install -r examples/requirements.txt
-
run
:
python -m pytest -n 8 --dist=loadfile -rA -s ./examples/ | tee output.txt
-
run
:
python -m pytest -n 8 --dist=loadfile -rA -s ./examples/ | tee output.txt
-
store_artifacts
:
-
store_artifacts
:
...
@@ -89,7 +89,7 @@ jobs:
...
@@ -89,7 +89,7 @@ jobs:
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[tf,torch,docs]
-
run
:
sudo pip install .[tf,torch,docs]
--no-cache-dir
-
run
:
cd docs && make html SPHINXOPTS="-W"
-
run
:
cd docs && make html SPHINXOPTS="-W"
-
store_artifacts
:
-
store_artifacts
:
path
:
./docs/_build
path
:
./docs/_build
...
@@ -102,7 +102,7 @@ jobs:
...
@@ -102,7 +102,7 @@ jobs:
fingerprints
:
fingerprints
:
-
"
5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
-
"
5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
-
checkout
-
checkout
-
run
:
sudo pip install .[tf,torch,docs]
-
run
:
sudo pip install .[tf,torch,docs]
--no-cache-dir
-
run
:
./.circleci/deploy.sh
-
run
:
./.circleci/deploy.sh
check_code_quality
:
check_code_quality
:
working_directory
:
~/transformers
working_directory
:
~/transformers
...
@@ -115,7 +115,7 @@ jobs:
...
@@ -115,7 +115,7 @@ jobs:
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install --upgrade pip
# we need a version of isort with https://github.com/timothycrosley/isort/pull/1000
# we need a version of isort with https://github.com/timothycrosley/isort/pull/1000
-
run
:
sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
-
run
:
sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
-
run
:
sudo pip install .[tf,torch,quality]
-
run
:
sudo pip install .[tf,torch,quality]
--no-cache-dir
-
run
:
black --check --line-length 119 --target-version py35 examples templates tests src utils
-
run
:
black --check --line-length 119 --target-version py35 examples templates tests src utils
-
run
:
isort --check-only --recursive examples templates tests src utils
-
run
:
isort --check-only --recursive examples templates tests src utils
-
run
:
flake8 examples templates tests src utils
-
run
:
flake8 examples templates tests src utils
...
...
.github/workflows/github-torch-hub.yml
View file @
1d5c3a3d
...
@@ -21,7 +21,7 @@ jobs:
...
@@ -21,7 +21,7 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
pip install --upgrade pip
pip install --upgrade pip
pip install torch
pip install torch
--no-cache-dir
pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging
pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging
-
name
:
Torch hub list
-
name
:
Torch hub list
...
...
.github/workflows/self-push.yml
View file @
1d5c3a3d
...
@@ -36,7 +36,7 @@ jobs:
...
@@ -36,7 +36,7 @@ jobs:
run
:
|
run
:
|
source .env/bin/activate
source .env/bin/activate
pip install --upgrade pip
pip install --upgrade pip
pip install torch
pip install torch
--no-cache-dir
pip install .[sklearn,testing]
pip install .[sklearn,testing]
-
name
:
Are GPUs recognized by our DL frameworks
-
name
:
Are GPUs recognized by our DL frameworks
...
...
.github/workflows/self-scheduled.yml
View file @
1d5c3a3d
...
@@ -32,7 +32,7 @@ jobs:
...
@@ -32,7 +32,7 @@ jobs:
run
:
|
run
:
|
source .env/bin/activate
source .env/bin/activate
pip install --upgrade pip
pip install --upgrade pip
pip install .[sklearn,torch,testing]
pip install .[sklearn,torch,testing]
--no-cache-dir
-
name
:
Are GPUs recognized by our DL frameworks
-
name
:
Are GPUs recognized by our DL frameworks
run
:
|
run
:
|
...
...
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