-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try out caching pip #2107
Try out caching pip #2107
Conversation
- name: Install dependencies | ||
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the cache to determine how to install dependencies:
- name: Install dependencies | |
run: | | |
- name: Install SDV (cache has not changed) | |
if: steps.cache-pip.outputs.cache-hit == 'true' | |
run: | | |
python -m pip install --no-dependencies . | |
- name: Install SDV and dependencies (cache has changed) | |
if: steps.cache-pip.outputs.cache-hit != 'true' | |
run: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot call the force command --no-dependencies
, as that command ignores installing dependencies altogether (Job example).
Pip looks into the cache location path and will directly install those files rather than re-download them so we don't need to have separate steps. Example here: we can see it using the cache and cut down the time for windows installation by not downloading. (~2-3 mins saved)
Appears to be minimal gain with caching and we have a limit to how much we can cache for tests. Closing without merging since the investigation results do not warrant the addition. |
part of #2015
Longest minimum test (3.11, windows-latest)- 17m 10s went down to 14m 41s