CircleCI Python Cache
workflows: | |
version: 2 | |
build-deploy: | |
jobs: | |
- build | |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/python:2-jessie | |
steps: | |
- checkout | |
- restore_cache: | |
key: python-requirements-V1-{{ checksum "requirements.txt" }} | |
- run: | |
name: Install Python dependencies | |
command: pip install -r requirements.txt | |
- save_cache: | |
key: python-requirements-V1-{{ checksum "requirements.txt" }} | |
paths: | |
- "~/.cache/pip" | |
- "/usr/local/lib/python2.7/site-packages" | |
- "/usr/local/lib/site-python" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment