update circle-ci for python 2.7 and 3.5
This commit is contained in:
@@ -1,11 +1,26 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_py3:
|
||||||
working_directory: ~/pytorch-pretrained-BERT
|
working_directory: ~/pytorch-pretrained-BERT
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.7
|
- image: circleci/python:3.5
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: sudo pip install --progress-bar off .
|
- run: sudo pip install --progress-bar off .
|
||||||
- run: sudo pip install pytest
|
- run: sudo pip install pytest
|
||||||
- run: python -m pytest -sv tests/
|
- run: python -m pytest -sv tests/
|
||||||
|
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
|
||||||
|
- run: python -m pytest -sv tests/
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build_and_test:
|
||||||
|
jobs:
|
||||||
|
- build_py3
|
||||||
|
- build_py2
|
||||||
Reference in New Issue
Block a user