ci: modernize test workflow and fix Python 3.12+ compatibility#153
Open
ChristophNoetel wants to merge 1 commit into
Open
ci: modernize test workflow and fix Python 3.12+ compatibility#153ChristophNoetel wants to merge 1 commit into
ChristophNoetel wants to merge 1 commit into
Conversation
- Update actions/checkout@v2 → v4, actions/setup-python@v2 → v5 - Drop EOL Python versions (3.7, 3.8) — both reached end-of-life - Add Python 3.12 and 3.13 to the test matrix - Replace distutils with setuptools in setup.py (distutils removed in 3.12) - Bump python_requires to >=3.9 - Add PyPI classifiers for supported Python versions - Remove unnecessary system package (libgirepository1.0-dev) - Use fail-fast: false so all matrix jobs complete - Simplify test step to use unittest discover (matches existing test structure) All 29 existing tests pass on Python 3.13.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Modernize the CI workflow and fix setup.py to work on current Python versions.
Changes
Workflow:
setup.py:
Testing
All 29 existing tests pass on Python 3.13 locally. No functional changes to the library.
Motivation
The current CI cannot run on Python 3.12+ due to the distutils removal, and the GitHub Actions used are deprecated (v2). This gets CI green again on modern Python.