Skip to content

Test on Python 3.14 - #22

Merged
bensynapse merged 2 commits into
mainfrom
ci/workflows-2026-11-17
Nov 17, 2026
Merged

bensynapse merged 2 commits into
mainfrom
ci/workflows-2026-11-17

Conversation

@bensynapse

@bensynapse bensynapse commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Python 3.14 joins the test matrix. Once the 3.14 leg passed on this branch, the second commit added the Programming Language :: Python :: 3.14 classifier and an Unreleased line in the CHANGELOG.

What changed in .github/workflows/ci.yml

  • 3.14 is added to the Ubuntu matrix, next to 3.10 to 3.13.
  • A concurrency group: a new push to a pull request cancels the run it replaces. Pushes to main get a group of their own per run, so no run on main is cancelled.
  • setup-python caches pip downloads, keyed on pyproject.toml, in the test and lint jobs.

Python 3.14 locally

With CPython 3.14.8, pip install -e ".[dev,cli]" resolves every dependency from wheels. pytest -q -m "not live" gives 199 passed, 1 deselected, with no warnings.

ci-speedup

Run on the repository before the change (Israel time 14:00, 17 Nov), over 40 runs from the last 30 days. A typical PR waits 1m 20s for every check, so CI is in good shape. The slowest check is py3.12 on windows-latest at 1m 18s.

What applied, and what this PR does with it:

  • Superseded runs are not cancelled, and there is no concurrency group. Fixed by the concurrency group above.
  • In the Windows leg the uncached pip install takes about 30 s and the tests about 34 s. The tool raised no cache finding, since a missing cache line is not proof by its rules. The pip cache here is a lead from its log reading. Its effect is measured on this PR below.

Measured on this PR

py3.14 on ubuntu-latest passed on both commits, in 41 s and then 26 s.

The pip install step, before and after the cache:

Job 10 earlier runs, no cache This PR, cache restored
py3.12 on windows-latest 25 to 34 s, median about 31 s 22 s and 19 s
py3.12 on ubuntu-latest 8 to 17 s, median 10 s 8 s and 8 s

setup-python falls back to the previous cache when pyproject.toml changes, so a version bump still restores most of it. The whole run took 85 s and then 72 s. The Windows leg still gates it, at 81 s and then 66 s, and its test time varies from run to run.

The tool's check after the change lands needs runs on main, so it waits for the merge.

  • Repeated checkout and setup per job, no paths filter, no draft gating: left as they are. Each job checks something different, and none of them moves the 1m 20s wait.
  • mirror-gitlab.yml fetches the full history. The mirror needs it, so it stays.

A new push to a pull request now cancels the run it replaces.
The 3.14 test leg passed on this branch.
@bensynapse
bensynapse merged commit 55dc2e3 into main Nov 17, 2026
23 checks passed
@bensynapse
bensynapse deleted the ci/workflows-2026-11-17 branch November 17, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant