From aaf07bdfd6bb3880260e7cae4f4f09fb920e8e63 Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 20 Feb 2022 11:24:43 -0700 Subject: [PATCH] Installing requirements into venv directory, caching it. --- .circleci/config.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b85ced1f..4cb56417 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,15 +20,17 @@ jobs: steps: - checkout - run: - command: "pip install -r requirements.txt" + name: Install Requirements + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements.txt - run: command: 'pytest -svv wrolpi modules' - save_cache: key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} paths: - - ".venv" - - "/usr/local/bin" - - "/usr/local/lib/python3.6/site-packages" + - "venv" # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows