From c5dec49a2f4aac397931ff3fed2a6716d4d1ca49 Mon Sep 17 00:00:00 2001 From: Pierre Fontaine Date: Mon, 18 Jan 2021 10:05:22 +0100 Subject: [PATCH] :green_heart: Add venv to install dependencies. --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d42780..0b175d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,13 +21,18 @@ jobs: - dependencies- - run: name: Install dependencies - command: pip install -r requirements/dev.txt --user + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements/dev.txt - run: name: Setup dababase environment: FLASK_APP: /home/circleci/repo/autoapp.py FLASK_DEBUG: 0 - command: flask db upgrade + command: | + . venv/bin/activate + flask db upgrade workflows: version: 2