Repository navigation
Updated CI: Python 3.11-3.15 test matrix, ruff and setup-uv versions, and Dependabot - #19
Merged
Merged
Conversation
The test matrix only covered Python 3.13, although the package supports 3.11 and later. In ruff.yml: updated actions/checkout to v7 and ruff-action to v4, added a `ruff format --check` step (CI only ran `ruff check`), and used the same triggers as test.yml so each pull request runs ruff once instead of twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ruff-action v4 releases are immutable and have no floating `v4` tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Updated astral-sh/setup-uv from v7 to v10.3.3, pinned to the exact version because setup-uv no longer publishes floating major tags (since v8). - Removed `enable-cache: true` from publish.yml, so setup-uv v10's default disables the cache on `release` events, guarding the PyPI publish job against cache poisoning. - Updated the ruff pre-commit hooks from v0.17.1 to v0.17.3, matching the version pinned in pyproject.toml and used in CI. - Added the github-actions ecosystem to Dependabot, so pinned action versions get update PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
test.yml: the test matrix ran only Python 3.13, although the package supports>=3.11, andmarkus-autotesting's server image now uses 3.13 to 3.15. The matrix is now 3.11, 3.12, 3.13, 3.14, and 3.15.ruff.yml:actions/checkoutfrom v4 to v7 andastral-sh/ruff-actionfrom v3 to v4.1.0. ruff-action's v4 releases are immutable and have no floatingv4tag, so it's pinned to the exact version, as its README now recommends. Its breaking change is moving to Node 24, which GitHub-hosted runners support. ruff-action still reads the ruff version from thedevdependency group inpyproject.toml(currently 0.17.3).ruff format --check --diffstep. ruff-action runs onlyruff checkby default, and pre-commit.ci isn't running on this repo, so formatting wasn't checked in CI.on: [push, pull_request]to the same triggers astest.yml(pull requests, and pushes tomain). Before, every pull request from a branch in this repo ran ruff twice: once for the push and once for the pull request.setup-uv(test.yml,publish.yml): updated from v7 to v10.3.3. Breaking changes since v7:prune-cachedefault tofalse. This uses more cache storage, but changes nothing functionally.release,pull_request_target, andworkflow_runevents, to prevent cache poisoning.publish.ymlruns onreleaseand setenable-cache: true, which would override that, so I removed it. The publish job builds one package, so the cache barely helps there.test.ymlkeepsenable-cache: true, sincepull_requestandpusharen't affected..pre-commit-config.yaml: updated the ruff hooks from v0.17.1 to v0.17.3, matching the version pinned inpyproject.tomland used in CI.dependabot.yml: added thegithub-actionsecosystem (monthly), so the workflows' pinned action versions get update PRs. Before, onlyuvdependencies were covered.Testing
uv sync --lockedandpytestalso pass locally on 3.11 to 3.14.test.ymlpasses on setup-uv v10.3.3.publish.ymlcan only be exercised by a release.pre-commit run --all-filespasses with ruff v0.17.3, with no changes.ruff checkandruff format --check --diff, with ruff 0.17.3 read frompyproject.toml.ruff check .andruff format --check --diff .pass.🤖 Generated with Claude Code