From 34bdb7f9cb82593a64a7e94bf26325f3ba35f0d8 Mon Sep 17 00:00:00 2001 From: thomwolf Date: Wed, 6 Feb 2019 00:25:12 +0100 Subject: [PATCH] update circle-ci for python 2.7 and 3.5 --- .circleci/config.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c8f906aba..0efb5f4b0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file