mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-19 16:20:52 +00:00
Attempt to cache packages downloaded with pip for Windows jobs
This commit is contained in:
parent
35d731adf0
commit
ce8a6d49c7
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user