-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use Caching in Github Actions Workflow #66
Conversation
df45d22
to
4ea6c01
Compare
b8e2422
to
0bc9eec
Compare
cfc9929
to
7775f41
Compare
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.
Looks good to me! Excited to see how much this speeds things up 🚀
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.
I like the caching but in updating our actions to cover Python 3.12 I have clobbered a bunch of your changes here. I've left a comment inline about how to make the conflict resolution a bit simpler.
pydantic-version: | ||
description: "Version of Pydantic to use for testing" | ||
required: true |
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.
If you set a default of 1.10 on this I think you can revert most of the non-caching updates in this PR, since I've separately consolidated actions into this setup.
Alternatively, we can use this as an annotation defaulted to "none" just to seed the cache key and then only install Pydantic in the calling action where it's required. That'll eliminate nearly all of the action-level changes in this PR. If we go that route we should probably name the key something like installed-pydantic-version
or suchlike.
My delays in merging approved PRs have come to bite me. |
7775f41
to
f79c8c0
Compare
FYI - this reduces the Python test action from 90-120s -> 30-40s. |
Description
This PR sets up the caching action in the Github workflow so that installing Python dependencies is faster.
Checklist
changie new
to create a changelog entry