Attempt to cache packages downloaded with pip for Windows jobs

This commit is contained in:
Jean-Paul Calderone 2023-08-09 11:30:39 -04:00
parent 35d731adf0
commit ce8a6d49c7

View File

@ -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: