Skip to content

ci: run the tests on the image's Python too - #14

Merged
Odrec merged 1 commit into
mainfrom
ci/test-on-image-python
Nov 4, 2026
Merged

Odrec merged 1 commit into
mainfrom
ci/test-on-image-python

Conversation

@Odrec

@Odrec Odrec commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

.python-version pins the oldest supported Python (3.13), so the checks only ever ran the test suite there, while the image is built from the newest Python (3.15 since #5). A Dependabot bump of the base image was therefore built, but never tested.

The checks now read the Python version from the Dockerfile's FROM python: line and run pytest on it as well, so a base-image bump is tested on the PR itself, without anyone maintaining a version matrix.

Verified by running the exact step inside python:3.15-slim: the version derives as 3.15 despite .python-version, and the suite passes on 3.15.2. Note that the locked pyyaml 6.0.3 has no 3.15 wheels yet (PyPI has nothing newer), so on 3.15 uv builds it from source. The image build has been doing the same since #5; the step takes a few seconds extra.

🤖 Generated with Claude Code

.python-version pins the oldest supported Python (3.13), so the checks
only ever ran the suite there, while the image is built from the newest
Python. A Dependabot bump of the base image was therefore built, but not
tested. The checks now read the version from the Dockerfile's FROM line
and run pytest on it as well, so such a bump is tested on the PR itself.
@Odrec
Odrec merged commit b8077dd into main Nov 4, 2026
1 check passed
@Odrec
Odrec deleted the ci/test-on-image-python branch November 4, 2026 15:42
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