From 5e5b862a5eaee97bb84a89414d91b26243bb68c4 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Mon, 21 Mar 2022 13:32:55 +0100
Subject: [PATCH] USe both requirements-dev and requirements for cache key.

---
 .circleci/config.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 83ad2a140..d5d5511bb 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -87,7 +87,7 @@ jobs:
           command: sudo chown -R circleci:circleci /usr/local
       - restore_cache:
           keys:
-            - v4-python-{{ .Branch }}-{{ checksum "requirements-dev.txt" }}
+            - v4-python-{{ .Branch }}-{{ checksum "requirements.txt" }}{{ checksum "requirements-dev.txt" }}
             - v4-python-{{ .Branch }}-
             - v4-python-
       - run:
@@ -100,7 +100,7 @@ jobs:
       - save_cache:
           paths:
             - ./venv
-          key: v4-python-{{ .Branch }}-{{ checksum "requirements-dev.txt" }}
+          key: v4-python-{{ .Branch }}-{{ checksum "requirements.txt" }}{{ checksum "requirements-dev.txt" }}
       - persist_to_workspace:
           root: ~/repo
           paths:
-- 
GitLab