Skip to content

Fix nightly sklearn pin#520

Merged
adrinjalali merged 7 commits into
skops-dev:mainfrom
adrinjalali:fix-nightly-sklearn-pin
Jun 23, 2026
Merged

Fix nightly sklearn pin#520
adrinjalali merged 7 commits into
skops-dev:mainfrom
adrinjalali:fix-nightly-sklearn-pin

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

update ci

adrinjalali and others added 7 commits June 23, 2026 10:57
The scientific-python-nightly-wheels index no longer publishes
scikit-learn 1.9.dev0, so pixi fails to solve the `default` and
`ci-sklearn-nightly` environments. Since every CI job resolves the
`default` environment, this broke all of CI (e.g. PR skops-dev#519).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Now that scikit-learn 1.9.0 is released and nightly tracks 1.10.dev0,
add a ci-sklearn19 environment/feature and wire it into the build-test
matrix so the latest stable release is covered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Newer pytest (preparing for pytest 10) deprecates passing a non-Collection
iterable (here, generators) to @pytest.mark.parametrize, raising
PytestRemovedIn10Warning. skops treats DeprecationWarning as an error, so
this aborted collection of test_persist.py and failed every CI environment.
Wrap the _tested_estimators/_tested_ufuncs/_tested_types/_unsupported_estimators
generators in list().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
matplotlib deprecated boxplot's `vert` (bool) in 3.11 (removed in 3.13) in
favour of `orientation` ({'vertical','horizontal'}); with skops treating
DeprecationWarning as an error this failed the permutation-importance card
tests on every CI environment.

The previous `vert="horizontal"` was also a latent bug: `vert` is boolean, so
the truthy string rendered the boxplot vertically rather than horizontally.

Teach the boxplot() shim to pick `orientation=` on matplotlib >=3.10 and fall
back to `vert=` (bool) on older versions, and pass orientation="horizontal"
from the card so the plot is horizontal as originally intended.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
test_copy_plots saved one plot to a relative "fig2.png" path, which wrote it
into the current working directory (the repo root) and left it behind. Save it
into the test's temporary directory like fig1, so it is cleaned up with it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adrinjalali adrinjalali force-pushed the fix-nightly-sklearn-pin branch from 0d8dd4c to aa1d878 Compare June 23, 2026 10:14
@adrinjalali adrinjalali merged commit 487e232 into skops-dev:main Jun 23, 2026
30 checks passed
@adrinjalali adrinjalali deleted the fix-nightly-sklearn-pin branch June 23, 2026 10:21
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