Repository navigation
ci: test the lowest dependency versions and a model from the wheel - #19
Merged
Merged
Conversation
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
The lower bounds in
pyproject.tomlare 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.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.uv run --no-project --isolated), souv.lockstays as it is.pytestandpytest-covget the lower bounds of the dev group, sincelowest-directwould otherwise take their oldest releases.build: afterminiops version, the installed wheel runsminiops initandminiops new churn --flavor sklearn --task binary_classificationin$RUNNER_TEMP/project, outside the checkout.newwrites the model files from the packaged templates and creates the model environment with uv. A last check reads the model's.python-versionand runs itsmodel.pyin the new environment, which fails unless that environment has miniOPs with thesklearnextra.All checks, the only status the branch ruleset requires, now also needslowest.CONTRIBUTING.mdand the changelog (Unreleased, Changed) describe both checks.Known limitations:
lowestcan 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
feat(registry): ...)src/changed; the change adds test runs to CI)CHANGELOG.mdupdated under "Unreleased"