From 3b82544ab1239e4f18dce4703c0abbf2d939f9bf Mon Sep 17 00:00:00 2001 From: Kevin Lloyd Bernal Date: Fri, 7 Aug 2020 11:38:50 +0800 Subject: [PATCH] rewrite CircleCI tests using toxify --- .circleci/config.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c20909..8f0d103 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,6 +4,17 @@ # version: 2 jobs: + toxify: + docker: + - image: python:3.6 + steps: + - checkout + - run: + name: Run tests in supported Python versions + command: | + pip install tox tox-pyenv + pyenv local 3.5.3 3.6.0 3.7.0 3.8.0 + tox build: docker: - image: circleci/python:3.6.1 @@ -26,9 +37,11 @@ jobs: paths: - ./venv key: v1-dependencies-{{ checksum "requirements.txt" }} - # Run tests - - run: - name: run tests - command: | - . venv/bin/activate - pip install tox && tox + +workflows: + version: 2 + + shublang: + jobs: + - toxify + - build