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

Add a pyenv action. #24

Merged
merged 3 commits into from
Jul 5, 2023
Merged

Add a pyenv action. #24

merged 3 commits into from
Jul 5, 2023

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Jul 4, 2023

I was using https://github.com/gabrielfalcao/pyenv-action but caching
did not work out of the box and my attempts to get it working failed.
A read of that action code also seemed to confirm it does not actually
cache; it just re-uses the PYENV_ROOT if you've managed to cache it for
it.

I was using https://github.com/gabrielfalcao/pyenv-action but caching
did not work out of the box and my attempts to get it working failed.
A read of that action code also seemed to confirm it does not actually
cache; it just re-uses the PYENV_ROOT if you've managed to cache it for
it.
@jsirois jsirois requested review from kaos, benjyw and huonw July 4, 2023 22:20
@jsirois
Copy link
Contributor Author

jsirois commented Jul 4, 2023

This was developed and proved out as a local action in pex-tool/pex#2168 but I just switched that PR over to this commit and it's humming along demonstrating a correct cache hit for the CPython 2.7.18, 3.5.10 and 3.7.17 versions it's being used for.

pyenv/action.yml Show resolved Hide resolved
pyenv/action.yml Outdated Show resolved Hide resolved
jsirois added a commit to jsirois/pex that referenced this pull request Jul 4, 2023
jsirois added a commit to jsirois/pex that referenced this pull request Jul 4, 2023
@jsirois
Copy link
Contributor Author

jsirois commented Jul 4, 2023

Alright, I have a new run of pex-tool/pex#2168 spinning using these last changes. I nuked the macos cache there so that both cache hit (linux) and cache miss paths are re-confirmed.

@jsirois jsirois merged commit 1356087 into pantsbuild:main Jul 5, 2023
@jsirois jsirois deleted the pyenv-action branch July 5, 2023 01:01
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

Successfully merging this pull request may close these issues.

2 participants