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
d740351f
Unverified
Commit
d740351f
authored
Aug 04, 2020
by
Lysandre Debut
Committed by
GitHub
Aug 04, 2020
Browse files
Upgrade pip when doing CI (#6234)
* Upgrade pip when doing CI * Don't forget Github CI
parent
57eb1cb6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
.circleci/config.yml
.circleci/config.yml
+7
-0
.github/workflows/github-torch-hub.yml
.github/workflows/github-torch-hub.yml
+1
-0
.github/workflows/self-push.yml
.github/workflows/self-push.yml
+1
-0
.github/workflows/self-scheduled.yml
.github/workflows/self-scheduled.yml
+1
-0
No files found.
.circleci/config.yml
View file @
d740351f
...
@@ -10,6 +10,7 @@ jobs:
...
@@ -10,6 +10,7 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,tf-cpu,torch,testing]
-
run
:
sudo pip install .[sklearn,tf-cpu,torch,testing]
-
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
...
@@ -27,6 +28,7 @@ jobs:
...
@@ -27,6 +28,7 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,torch,testing]
-
run
:
sudo pip install .[sklearn,torch,testing]
-
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
:
...
@@ -43,6 +45,7 @@ jobs:
...
@@ -43,6 +45,7 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,tf-cpu,testing]
-
run
:
sudo pip install .[sklearn,tf-cpu,testing]
-
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
:
...
@@ -56,6 +59,7 @@ jobs:
...
@@ -56,6 +59,7 @@ jobs:
RUN_CUSTOM_TOKENIZERS
:
yes
RUN_CUSTOM_TOKENIZERS
:
yes
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[ja,testing]
-
run
:
sudo pip install .[ja,testing]
-
run
:
python -m pytest -s ./tests/test_tokenization_bert_japanese.py | tee output.txt
-
run
:
python -m pytest -s ./tests/test_tokenization_bert_japanese.py | tee output.txt
-
store_artifacts
:
-
store_artifacts
:
...
@@ -71,6 +75,7 @@ jobs:
...
@@ -71,6 +75,7 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[sklearn,torch,testing]
-
run
:
sudo pip install .[sklearn,torch,testing]
-
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
...
@@ -83,6 +88,7 @@ jobs:
...
@@ -83,6 +88,7 @@ jobs:
-
image
:
circleci/python:3.6
-
image
:
circleci/python:3.6
steps
:
steps
:
-
checkout
-
checkout
-
run
:
sudo pip install --upgrade pip
-
run
:
sudo pip install .[tf,torch,docs]
-
run
:
sudo pip install .[tf,torch,docs]
-
run
:
cd docs && make html SPHINXOPTS="-W"
-
run
:
cd docs && make html SPHINXOPTS="-W"
-
store_artifacts
:
-
store_artifacts
:
...
@@ -106,6 +112,7 @@ jobs:
...
@@ -106,6 +112,7 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
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]
...
...
.github/workflows/github-torch-hub.yml
View file @
d740351f
...
@@ -20,6 +20,7 @@ jobs:
...
@@ -20,6 +20,7 @@ jobs:
python-version
:
3.7
python-version
:
3.7
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
pip install --upgrade pip
pip install torch
pip install torch
pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging
pip install numpy tokenizers filelock requests tqdm regex sentencepiece sacremoses packaging
...
...
.github/workflows/self-push.yml
View file @
d740351f
...
@@ -35,6 +35,7 @@ jobs:
...
@@ -35,6 +35,7 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
source .env/bin/activate
source .env/bin/activate
pip install --upgrade pip
pip install torch
pip install torch
pip install .[sklearn,testing]
pip install .[sklearn,testing]
...
...
.github/workflows/self-scheduled.yml
View file @
d740351f
...
@@ -31,6 +31,7 @@ jobs:
...
@@ -31,6 +31,7 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
source .env/bin/activate
source .env/bin/activate
pip install --upgrade pip
pip install .[sklearn,torch,testing]
pip install .[sklearn,torch,testing]
-
name
:
Are GPUs recognized by our DL frameworks
-
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