1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-19 00:30:10 -07:00

CircleCI: Cache installation of Tox

This commit is contained in:
Adrian Sampson 2019-06-30 11:29:49 -04:00
parent 92f48c2777
commit cdf1a97d75

View File

@ -7,11 +7,21 @@ jobs:
- image: circleci/python:3.7 - image: circleci/python:3.7
steps: steps:
- checkout - checkout
# Install Tox.
- restore_cache:
key: dep
- run: - run:
command: sudo pip install tox command: sudo pip install tox
- save_cache:
key: dep
paths:
- "/usr/local/bin"
- "/usr/local/lib/python3.7/site-packages"
# Run Tox.
- restore_cache: - restore_cache:
key: tox-{{ checksum "tox.ini" }} key: tox-{{ checksum "tox.ini" }}
paths: [".tox"]
- run: - run:
command: tox -e py37,flake8 command: tox -e py37,flake8
- save_cache: - save_cache: