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

CI: use interpreter provided by actions/setup-python #192

Merged

Conversation

chrisnovakovic
Copy link
Contributor

actions/setup-python "installs" a non-standard Python interpreter in the CI environment by adding a directory containing it to PATH, but the updated PATH isn't inherited by the Please build sandbox, so the system-wide Python interpreter is always used. Pass through the value of PATH to the sandbox so that the correct actions/setup-python interpreter is used.

Fixes #127.

`actions/setup-python` "installs" a non-standard Python interpreter in
the CI environment by adding a directory containing it to `PATH`, but
the updated `PATH` isn't inherited by the Please build sandbox, so the
system-wide Python interpreter is always used. Pass through the value of
`PATH` to the sandbox so that the correct `actions/setup-python`
interpreter is used.

Fixes please-build#127.
Copy link
Contributor

@toastwaffle toastwaffle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice testing strategy :)

@chrisnovakovic chrisnovakovic merged commit f7ee94c into please-build:master Nov 5, 2024
9 of 11 checks passed
@chrisnovakovic chrisnovakovic deleted the ci-use-setup-python branch November 5, 2024 17:04
@chrisnovakovic
Copy link
Contributor Author

This uncovers a few failures in >= 3.12 because distutils was removed from the stdlib - I'll fix that separately.

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.

Plugin and setup-python action don't seem to work together.
2 participants