Installing requirements into venv directory, caching it.

This commit is contained in:
Roland 2022-02-20 11:24:43 -07:00
parent d40c3a5994
commit aaf07bdfd6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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