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
343c094f
Commit
343c094f
authored
Dec 20, 2019
by
Aymeric Augustin
Browse files
Run examples separately from tests.
This optimizes the total run time of the Circle CI test suite.
parent
80caf79d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
.circleci/config.yml
.circleci/config.yml
+26
-11
No files found.
.circleci/config.yml
View file @
343c094f
version
:
2
jobs
:
build
_py3_torch_and_tf
:
run_tests
_py3_torch_and_tf
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
...
...
@@ -17,7 +17,7 @@ jobs:
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov
-
run
:
codecov
build
_py3_torch
:
run_tests
_py3_torch
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
...
...
@@ -32,9 +32,8 @@ jobs:
-
run
:
sudo pip install pytest codecov pytest-cov pytest-xdist
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./examples/
-
run
:
codecov
build
_py3_tf
:
run_tests
_py3_tf
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
...
...
@@ -50,7 +49,7 @@ jobs:
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./transformers/tests/ --cov
-
run
:
codecov
build
_py3_custom_tokenizers
:
run_tests
_py3_custom_tokenizers
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
...
...
@@ -60,6 +59,21 @@ jobs:
-
run
:
sudo pip install pytest pytest-xdist
-
run
:
sudo pip install mecab-python3
-
run
:
RUN_CUSTOM_TOKENIZERS=1 python -m pytest -sv ./transformers/tests/tokenization_bert_japanese_test.py
run_examples_py3_torch
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
environment
:
OMP_NUM_THREADS
:
1
resource_class
:
xlarge
parallelism
:
1
steps
:
-
checkout
-
run
:
sudo pip install torch
-
run
:
sudo pip install --progress-bar off .
-
run
:
sudo pip install pytest pytest-xdist
-
run
:
sudo pip install tensorboardX scikit-learn
-
run
:
python -m pytest -n 8 --dist=loadfile -s -v ./examples/
deploy_doc
:
working_directory
:
~/transformers
docker
:
...
...
@@ -72,7 +86,7 @@ jobs:
-
run
:
sudo pip install --progress-bar off -r docs/requirements.txt
-
run
:
sudo pip install --progress-bar off -r requirements.txt
-
run
:
./.circleci/deploy.sh
repository_consistency
:
check_
repository_consistency
:
working_directory
:
~/transformers
docker
:
-
image
:
circleci/python:3.5
...
...
@@ -91,9 +105,10 @@ workflows:
version
:
2
build_and_test
:
jobs
:
-
repository_consistency
-
build_py3_custom_tokenizers
-
build_py3_torch_and_tf
-
build_py3_torch
-
build_py3_tf
-
check_repository_consistency
-
run_examples_py3_torch
-
run_tests_py3_custom_tokenizers
-
run_tests_py3_torch_and_tf
-
run_tests_py3_torch
-
run_tests_py3_tf
-
deploy_doc
:
*workflow_filters
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