32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
version: 2
|
|
jobs:
|
|
build_py3:
|
|
working_directory: ~/pytorch-pretrained-BERT
|
|
docker:
|
|
- image: circleci/python:3.5
|
|
steps:
|
|
- checkout
|
|
- run: sudo pip install --progress-bar off .
|
|
- run: sudo pip install pytest codecov pytest-cov
|
|
- run: sudo pip install spacy ftfy==4.4.3
|
|
- run: sudo python -m spacy download en
|
|
- run: python -m pytest -sv tests/ --runslow --cov
|
|
- run: codecov
|
|
build_py2:
|
|
working_directory: ~/pytorch-pretrained-BERT
|
|
docker:
|
|
- image: circleci/python:2.7
|
|
steps:
|
|
- checkout
|
|
- run: sudo pip install --progress-bar off .
|
|
- run: sudo pip install pytest codecov pytest-cov
|
|
- run: sudo pip install spacy ftfy==4.4.3
|
|
- run: sudo python -m spacy download en
|
|
- run: python -m pytest -sv tests/ --runslow --cov
|
|
- run: codecov
|
|
workflows:
|
|
version: 2
|
|
build_and_test:
|
|
jobs:
|
|
- build_py3
|
|
- build_py2 |