chore: replace custom cache step with config#11572
Conversation
142169a to
8b53d83
Compare
|
This does not impair existing caching behaviors, as the main addition is the post-action cache save, which due to the structure of the CI jobs, will collide on save - first one wins. Example: https://github.com/pypa/warehouse/runs/6850862495?check_suite_focus=true#step:16:3 I'm thinking about a general refactor of the steps here - and introducing a step-based workflow that runs the |
Upon further testing, looks like the downloads are cached, which is fine. Both |
|
@miketheman I'm having a hard time determining if you're ready for this PR to be merged? |
|
@di yes, this is ready for merge. I'll keep an eye on vigor the next few PRs and merges, and continue to think about how cache can improve. |
The `actions/setup-python@v2` and higher included a built-in cache restore and post-run save step, meaning we can now retire our custom steps for the configuration we want and gain some speed here. Refs: actions/setup-python#266 Refs: https://github.com/actions/setup-python#caching-packages-dependencies Signed-off-by: Mike Fiedler <miketheman@gmail.com>
The `actions/setup/node@v2` introduced support for configuring cache for npm. Since we use defaults, no changes are necessary other than setting the installer type. Refs: actions/setup-node#272 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
8b53d83 to
9e3516a
Compare
The
actions/setup-python@v2and higher included a built-in cacherestore and post-run save step, meaning we can now retire our custom
steps for the configuration we want and gain some speed here.
Refs: actions/setup-python#266
Refs: https://github.com/actions/setup-python#caching-packages-dependencies
The
actions/setup/node@v2introduced support for configuring cache fornpm.
Since we use defaults, no changes are necessary other than setting the
installer type.
Refs: actions/setup-node#272
Signed-off-by: Mike Fiedler miketheman@gmail.com