Skip to content
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

Enable pip caching for setup-python action? #490

Open
hombit opened this issue Oct 14, 2024 · 1 comment
Open

Enable pip caching for setup-python action? #490

hombit opened this issue Oct 14, 2024 · 1 comment

Comments

@hombit
Copy link
Contributor

hombit commented Oct 14, 2024

The setup-python action supports caching of the global pip directory, so packages are not re-downloaded. We can enable it with with: cache: 'pip'. See the documentation here.

I’m not sure if it would speed up the pipelines. I propose we test it with one of our projects first.

@mtauraso
Copy link
Contributor

mtauraso commented Oct 25, 2024

Definitely worth trying. I suspect our images are wiped prior to each run in github actions CI, and that this would not affect CI times.

If we somehow have the ability to override where the pip cache is, and can point to some common location we might be able to make this work in a wiped CI environment.

This exists, and covers the right directories to be of use for pip.
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants