Skip to content

Commit de105d6

Browse files
committed
add cache of python dependencies
1 parent 6d54ebb commit de105d6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
- checkout:
99
path: /tmp/src/templateflow
1010

11+
- restore_cache:
12+
key: deps-v1-{{ .Branch }}-{{ checksum "/tmp/src/templateflow/requirements.txt"}}
13+
1114
- run:
1215
name: Install git and git-annex
1316
command: |
@@ -36,13 +39,22 @@ jobs:
3639
echo "include templateflow/VERSION" >> MANIFEST.in
3740
twine check
3841
42+
- save_cache:
43+
key: deps-v1-{{ .Branch }}-{{ checksum "/tmp/src/templateflow/requirements.txt"}}
44+
paths:
45+
- "/tmp/tests/venv"
46+
3947
deploy_pypi:
4048
machine:
4149
image: circleci/classic:201711-01
4250
working_directory: /tmp/src/templateflow
4351
steps:
4452
- checkout:
4553
path: /tmp/src/templateflow
54+
55+
- restore_cache:
56+
key: deps-v1-{{ .Branch }}-{{ checksum "/tmp/src/templateflow/requirements.txt"}}
57+
4658
- run:
4759
name: Deploy to PyPi
4860
command: |

0 commit comments

Comments
 (0)