cache tox env files to speed up CI jobs

This commit is contained in:
jimmylai 2019-07-24 12:18:28 -07:00 committed by GitHub
parent 5d1ba5d465
commit 13ff089dad

View file

@ -22,12 +22,18 @@ commands:
default: test
steps:
- checkout
- restore_cache:
key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-<< parameters.env >>
- run:
name: install tox
command: pip install --user tox
- run:
name: run tox
command: ~/.local/bin/tox -e << parameters.env >>
- save_cache:
key: tox-v1-{{ checksum "tox.ini" }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}-{{ checksum "setup.py" }}-<< parameters.env >>
paths:
- '.tox'
jobs:
lint: