Created
May 4, 2018 17:56
-
-
Save eddiewebb/ea07f681688a61d046e42619af31bbe6 to your computer and use it in GitHub Desktop.
CircleCI Python Cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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