Repository navigation
Drop Python 3.9 support and keep testing early patch releases - #822
Conversation
Raise the minimum supported Python version to 3.10. Run early CPython patch releases on Ubuntu 24.04 when setup-python lacks builds for newer runners, and check for the latest available patch in each supported minor. Cover both early and current releases of Python 3.14 and 3.15. Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #822 +/- ##
==========================================
- Coverage 97.26% 94.50% -2.77%
==========================================
Files 3 3
Lines 7859 7859
==========================================
- Hits 7644 7427 -217
- Misses 215 432 +217
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| - os: ubuntu-24.04 | ||
| python-version: "3.14.0" | ||
| - os: ubuntu-latest | ||
| python-version: "3.15" | ||
| - os: ubuntu-latest | ||
| python-version: "3.15.0" |
There was a problem hiding this comment.
3.14.0, 3.15 and 3.15.0 are all new here; all the other entries in the matrix are the same (except that 3.9 is also removed)
srittau
left a comment
There was a problem hiding this comment.
The differing CI runners is a good idea!
|
I also looked into whether we could use Python-build-standalone instead of setup-python (which we've also explored before IIRC), but it gets annoyingly complicated due to the fact we run CPython's tests in CI to make sure that typing_extensions doesn't break the typing module with its monkeypatching. PBS builds strip the |
This builds on @srittau’s PR to drop Python 3.9 support. Python 3.10 becomes the minimum supported version.
CI tests both an early patch release and the latest patch of each supported CPython minor because
typinghas changed between patch releases. This adds coverage for 3.14.0, 3.15.0, and the latest 3.15 patch.The pinned releases from 3.10.4 through 3.14.0 use
ubuntu-24.04becausesetup-pythonlacks Ubuntu 26.04 builds for them. The other test jobs useubuntu-latest.Fixes #813
Co-authored-by: Sebastian Rittau srittau@rittau.biz