mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
cache tox env files to speed up CI jobs
This commit is contained in:
parent
5d1ba5d465
commit
13ff089dad
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue