update circle-ci for python 2.7 and 3.5

This commit is contained in:
thomwolf 2019-02-06 00:25:12 +01:00
parent 848aae49e1
commit 34bdb7f9cb

View File

@ -1,11 +1,26 @@
version: 2
jobs:
build:
build_py3:
working_directory: ~/pytorch-pretrained-BERT
docker:
- image: circleci/python:3.7
- image: circleci/python:3.5
steps:
- checkout
- run: sudo pip install --progress-bar off .
- run: sudo pip install pytest
- 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