Skip to content

test: add automated sklearn version compatibility workflow#52

Merged
Gnpd merged 7 commits intomainfrom
test/automated-testing-across-scikit-learn-versions
Mar 14, 2026
Merged

test: add automated sklearn version compatibility workflow#52
Gnpd merged 7 commits intomainfrom
test/automated-testing-across-scikit-learn-versions

Conversation

@Gnpd
Copy link
Copy Markdown
Owner

@Gnpd Gnpd commented Mar 14, 2026

Add .github/workflows/sklearn-compat.yml to test against sklearn 1.6.1, 1.7.2, and 1.8.0 on push to main, weekly, and on demand. Update README with a compatibility matrix and a call for users to report issues.

resolves issue #42

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to test against multiple scikit-learn versions (1.6.1, 1.7.2, 1.8.0) and fixes a cross-version compatibility issue with SimpleImputer serialization.

Changes:

  • New CI workflow (.github/workflows/sklearn-compat.yml) running tests against three sklearn versions on push, weekly, and on demand
  • hasattr guard in sklearn_serializer.py to handle attributes that exist only in newer sklearn versions (e.g., _fill_dtype on SimpleImputer)
  • README updated with a sklearn version compatibility matrix; CHANGELOG expanded with historical entries

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/sklearn-compat.yml New CI workflow for sklearn version matrix testing
openmodels/serializers/sklearn/sklearn_serializer.py Added _fill_dtype to SimpleImputer exceptions; hasattr guard for forward-compat
README.md Added compatibility matrix section; badge URL changed to Gnpd org
CHANGELOG.md Backfilled historical changelog entries; added alpha.21 entry
pyproject.toml Version bump to 0.1.0-alpha.21
testpypi-badge.json Version bump to 0.1.0a21
.gitignore Added .tox/ and CLAUDE.md

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@Gnpd Gnpd merged commit 33ff0d1 into main Mar 14, 2026
6 checks passed
@Gnpd Gnpd deleted the test/automated-testing-across-scikit-learn-versions branch March 14, 2026 21:33
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.

2 participants