Skip to content

Instantly share code, notes, and snippets.

@eddiewebb
Created May 4, 2018 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddiewebb/ea07f681688a61d046e42619af31bbe6 to your computer and use it in GitHub Desktop.
Save eddiewebb/ea07f681688a61d046e42619af31bbe6 to your computer and use it in GitHub Desktop.
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