Skip to content

Commit 456e339

Browse files
committed
Include full Python version in cache key for CircleCI builds
1 parent 88f249c commit 456e339

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- checkout
1919
- restore_cache:
20-
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}
20+
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "setup.py" }}
2121
- run:
2222
name: Install Dependencies
2323
command: |
@@ -28,7 +28,7 @@ jobs:
2828
- save_cache:
2929
paths:
3030
- ./venv
31-
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}
31+
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "setup.py" }}
3232
- run:
3333
name: Run Tests
3434
command: |
@@ -64,7 +64,7 @@ jobs:
6464
steps:
6565
- checkout
6666
- restore_cache:
67-
key: dependencies-{{ .Environment.CACHE_VERSION }}-test-310-{{ checksum "setup.py" }}
67+
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "setup.py" }}
6868
- run:
6969
name: Install Dependencies
7070
command: |
@@ -75,7 +75,7 @@ jobs:
7575
- save_cache:
7676
paths:
7777
- ./venv
78-
key: dependencies-{{ .Environment.CACHE_VERSION }}-test-310-{{ checksum "setup.py" }}
78+
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "setup.py" }}
7979
- run:
8080
name: Build Docs
8181
command: |

0 commit comments

Comments
 (0)