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

Pin Python used in emscripten CI to latest 3.10 patch version #308

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Pin Python used in emscripten CI to latest 3.10 patch version #308

merged 1 commit into from
Dec 5, 2022

Conversation

oliviacrain
Copy link
Contributor

@oliviacrain oliviacrain commented Dec 4, 2022

GitHub has been rolling out a change to have ubuntu-latest workflows use Ubuntu 22.04. Once that change hit this repository, the test-emscripten CI job started to fail. That job (added in #244) specifically pins the Python version to 3.10.2, which is not available for Ubuntu 22.04.

From what I can gather, 3.10.2 was chosen to match the version used by Pyodide for their CI tests. Since then, Pyodide switched their CI to use the latest patch version of 3.10 (they also ran into the same incompatibility issue with Ubuntu 22.04 runners).

So: let's have the test-emscripten CI job use the latest patch version of Python 3.10, instead of pinning to any particular patch version.

Please note that the cache key used with actions/cache@v3 doesn't need to be changed- the python-path output from actions/setup-python@v4 includes the full Python version, so any patch version bumps to the Python version used will invalidate the cache.

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

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

We were using 3.10.2 to align with the Python version that Pyodide uses, but I guess it doesn't matter that much given that tests are passing.

Thanks!

@messense messense merged commit c2ae467 into PyO3:main Dec 5, 2022
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