Skip to content

ci: test the lowest dependency versions and a model from the wheel - #19

Merged
UltiPro merged 1 commit into
mainfrom
ci/lowest-versions-and-wheel
Nov 22, 2026
Merged

UltiPro merged 1 commit into
mainfrom
ci/lowest-versions-and-wheel

Conversation

@UltiPro

@UltiPro UltiPro commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

The lower bounds in pyproject.toml are a promise to users, but until now they were only checked by hand. CI now tests them on every pull request, and the build job uses the built wheel to create a project and a model instead of only printing its version.

  • New job lowest ("Test (lowest dependency versions)") runs the tests once on Ubuntu with Python 3.12 and --resolution lowest-direct, so uv takes pydantic 2.5.3, typer 0.27.0, polars 1.0.0, scikit-learn 1.6.0 and skops 0.11.0.
  • It runs without the project (uv run --no-project --isolated), so uv.lock stays as it is. pytest and pytest-cov get the lower bounds of the dev group, since lowest-direct would otherwise take their oldest releases.
  • build: after miniops version, the installed wheel runs miniops init and miniops new churn --flavor sklearn --task binary_classification in $RUNNER_TEMP/project, outside the checkout. new writes the model files from the packaged templates and creates the model environment with uv. A last check reads the model's .python-version and runs its model.py in the new environment, which fails unless that environment has miniOPs with the sklearn extra.
  • All checks, the only status the branch ruleset requires, now also needs lowest.
  • CONTRIBUTING.md and the changelog (Unreleased, Changed) describe both checks.

Known limitations:

  • Only the direct dependencies are at their lowest versions. Their own dependencies, such as numpy and scipy, resolve to the newest, so older versions of those are not tested.
  • lowest can start to fail with no change in this repository, when a new release of such a dependency stops working with one of the oldest direct ones. Then that lower bound no longer holds for a fresh install and has to be raised.

Checklist

  • PR title follows Conventional Commits (e.g. feat(registry): ...)
  • Larger or architectural changes were discussed in an issue first (n/a: CI and docs only, nothing architectural)
  • Tests added or updated (if applicable) (n/a: no code under src/ changed; the change adds test runs to CI)
  • No OS-specific assumptions (paths, shell commands, file encodings); works on Linux, macOS and Windows
  • Documentation updated
  • CHANGELOG.md updated under "Unreleased"

@UltiPro
UltiPro merged commit e47473d into main Nov 22, 2026
17 checks passed
@UltiPro
UltiPro deleted the ci/lowest-versions-and-wheel branch November 22, 2026 19:36
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