chore: Update CI python version from 3.6 to 3.11 #5025
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Github recently updated their
ubuntu-latest
image to 22.04. This broke setup-python as it no python 3.6 tarball is provided (actions/setup-python#544).This PR fixes the issue by just updating the CI to use python 3.9. It does not adjust the ci scripts to take advantage of possible new python features introduced since then.
This breakage is responsible for the current red master (as the PR run was executed before the Github runner change but the master action ran after it) and unblocks some PRs.
I also needed to update commonmark. Note that commonmark is deprecated for over a year now: readthedocs/commonmark.py#308. We might to want migrate away from it in a future PR, though we don't really need to. The source code we analyze is benign so security isn't really an issue and the featureset is enough for us.