You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @nabheet 👋,
The setup-python action supports caching for a single package manager at a time, either pip or pipenv. To cache both pip and pipenv dependencies, you can use two separate steps to cache each package manager independently within the same workflow. Here's an example of how you can achieve this:
In this example, the actions/cache action is used to cache the pip dependencies located in ~/.cache/pip and the pipenv virtual environments located in ~/.local/share/virtualenvs. Adjust the paths as necessary for your specific setup. The cache keys are generated based on the hash of the requirements.txt and Pipfile.lock files to ensure that the cache is updated when dependencies change.
I hope this helps! Let us know if you have any further questions.
I would like to cache both pip and pipenv. Wondering how I would accomplish that.
The text was updated successfully, but these errors were encountered: