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

Allow caching python venv for use in CI #1414

Open
fredderf121 opened this issue Sep 4, 2024 · 0 comments
Open

Allow caching python venv for use in CI #1414

fredderf121 opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fredderf121
Copy link

I'm using python with devenv via languages.python with a venv.
Is there a way to set up caching in a github action for the pip modules?
In the actions log I see the following lines:

Python interpreter changed, rebuilding Python venv...
/nix/store/fwwchj5n2v14qdsvna2kh8kz0vkrdlq6-python3-3.12.4-env/bin/python3.12 -m venv --upgrade-deps /home/runner/work/my-project/.devenv/state/venv
Requirements changed, running pip install -r /nix/store/d25d1fbdlkvi6l44gppkqda31k9vj0id-requirements.txt...

which is then followed by all the modules being downloaded, built, and installed. Is there a way to avoid this repeated work?

@fredderf121 fredderf121 added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant