ci: add Python matrix, caching, and test timeouts - #11
Merged
Conversation
- The liburing cache key referenced steps.cache-info.outputs.os/arch, which were never set (the step only defined sysinfo), so the key was effectively '--liburing-<hash>'. Key on runner.os/runner.arch instead. - Remove the duplicated checkout inside the composite action (both workflows already check out with submodules) and the explicit cache/save steps; actions/cache@v4 saves in its post step. - Drop the hand-rolled .venv cache (its key ignored the Python version, which would poison venvs across a matrix); setup-uv's enable-cache plus uv sync covers it. - Test on Python 3.12 and 3.13; UV_PYTHON overrides the .python-version pin so each matrix leg actually uses its interpreter. - Pin uv 0.8.13 (the regenerated uv.lock uses lock revision 3, which the previously pinned 0.6.2 predates). - Add pytest-timeout with a 120s default so a wedged event loop fails the test run instead of hanging CI; also cap jobs at 15 minutes and cancel superseded runs. - publish.yml: note that PyPI Trusted Publishing should replace the long-lived token. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bright2227
marked this pull request as ready for review
July 28, 2026 15:26
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
Why
The previous cache key referenced outputs that were never defined, CI covered only one Python version, and stalled event-loop tests could leave jobs running indefinitely.
Impact
CI exercises supported Python versions with reliable caching and fails boundedly when a test or job hangs.
Validation
uv run pytest -q— 17 passeduv run ruff check uringloop tests _ffi_build.pyuv lock --checkgit diff --check main...HEAD