From ce8a6d49c7c7e03edfe7f9893a958690b7e33089 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 9 Aug 2023 11:30:39 -0400 Subject: [PATCH] Attempt to cache packages downloaded with pip for Windows jobs --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dbd275a76..629488137 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -198,10 +198,18 @@ jobs: executor: "windows" environment: TAHOE_LAFS_HYPOTHESIS_PROFILE: "ci" + # Tell pip where its download cache lives. This must agree with the + # "save_cache" step below or caching won't really work right. + PIP_CACHE_DIR: "pip-cache" steps: - "checkout" + - "restore_cache": + keys: + - "pip-packages-v1-{{ checksum \"setup.py\" }}" + - "pip-packages-v1-" + - "run": name: "Fix $env:PATH" command: | @@ -230,6 +238,12 @@ jobs: command: | python -m pip install .[testenv] .[test] + - "save_cache": + paths: + # Make sure this agrees with PIP_CACHE_DIR in the environment. + - "pip-cache" + key: "pip-packages-v1-{{ checksum \"setup.py\" }}" + - "run": name: "Run Unit Tests" environment: