Commit 2b644785 authored by thomwolf's avatar thomwolf
Browse files

add tests on examples and large circle ci config

parent c6bf1a40
...@@ -5,6 +5,7 @@ jobs: ...@@ -5,6 +5,7 @@ jobs:
docker: docker:
- image: circleci/python:3.5 - image: circleci/python:3.5
resource_class: large resource_class: large
parallelism: 4
steps: steps:
- checkout - checkout
- run: sudo pip install --progress-bar off . - run: sudo pip install --progress-bar off .
...@@ -12,10 +13,12 @@ jobs: ...@@ -12,10 +13,12 @@ jobs:
- run: sudo pip install spacy ftfy==4.4.3 - run: sudo pip install spacy ftfy==4.4.3
- run: sudo python -m spacy download en - run: sudo python -m spacy download en
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov - run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
- run: python -m pytest -sv ./examples/
- run: codecov - run: codecov
build_py2: build_py2:
working_directory: ~/pytorch-transformers working_directory: ~/pytorch-transformers
resource_class: large resource_class: large
parallelism: 4
docker: docker:
- image: circleci/python:2.7 - image: circleci/python:2.7
steps: steps:
...@@ -25,6 +28,7 @@ jobs: ...@@ -25,6 +28,7 @@ jobs:
- run: sudo pip install spacy ftfy==4.4.3 - run: sudo pip install spacy ftfy==4.4.3
- run: sudo python -m spacy download en - run: sudo python -m spacy download en
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov - run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
- run: python -m pytest -sv ./examples/
- run: codecov - run: codecov
workflows: workflows:
version: 2 version: 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment