From a8e75dea0b721fc9db5ff284a1e130b2d39d8160 Mon Sep 17 00:00:00 2001 From: James Adams Date: Wed, 29 Jan 2020 10:36:48 -0500 Subject: [PATCH] updated the CircleCI config file to instal lthe project code as an editable package, install tox, and run tox for tests #53 --- .circleci/config.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4ceed0f..9ffda44 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,13 +7,9 @@ jobs: build: docker: # specify the version you desire here - # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` - - image: circleci/python:3.6.1 - - # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 + - image: circleci/python:3.6.1 working_directory: ~/repo @@ -32,7 +28,8 @@ jobs: command: | python3 -m venv venv . venv/bin/activate - pip install -r requirements.txt + pip install -e . + pip install tox - save_cache: paths: @@ -48,7 +45,7 @@ jobs: name: run tests command: | . venv/bin/activate - python manage.py test + tox - store_artifacts: path: test-reports