Skip to content

fix: pin sklearn in conda CI#1253

Open
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:bot/sklearn-skiptest-ci
Open

fix: pin sklearn in conda CI#1253
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:bot/sklearn-skiptest-ci

Conversation

@MilesCranmerBot

Copy link
Copy Markdown
Contributor

This stabilizes the scheduled conda-forge workflow on Python 3.13 by keeping the released conda test environment on scikit-learn <1.9.

The failure was from scikit-learn 1.9's new array API estimator check raising SkipTest when SCIPY_ARRAY_API is unset. Current source already treats unittest.SkipTest from sklearn checks as skipped; this pin is needed because the scheduled workflow tests the released conda package until the next PySR release.

Verification:

  • git diff --check
  • confirmed current source catches unittest.SkipTest in test_scikit_learn_compatibility
  • workflow lint skipped: actionlint is not installed locally

MilesCranmerBot referenced this pull request Jul 2, 2026
* chore(deps): consolidate GitHub Actions version bumps

- julia-actions/setup-julia v2→v3
- docker/login-action v3→v4
- docker/metadata-action v5→v6
- docker/setup-qemu-action v3→v4
- docker/setup-buildx-action v3→v4
- docker/build-push-action v6→v7

Closes #1225
Closes #1170

* chore(deps): consolidate npm/docs dependency bumps

- d3-format ^3.1.0 → ^3.1.2
- markdown-it ^14.1.0 → ^14.2.0
- markdown-it-mathjax3 ^4.3.2 → ^5.2.0
- vitepress-plugin-tabs ^0.6.0 → ^0.9.0

Closes #1227
Closes #1229
Closes #1231
Closes #1233
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@MilesCranmer

Copy link
Copy Markdown
Member

@MilesCranmerBot this feels like the wrong way to fix the issue... Please load ponytail skill and rewrite

Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
@MilesCranmerBot MilesCranmerBot force-pushed the bot/sklearn-skiptest-ci branch from 9b6c697 to 708ef82 Compare July 2, 2026 21:37
@MilesCranmerBot

Copy link
Copy Markdown
Contributor Author

Rewritten in ponytail mode: dropped the sklearn pin and set SCIPY_ARRAY_API=1 only for the conda test command.

That targets the actual scikit-learn 1.9 failure (SkipTest: SCIPY_ARRAY_API is not set) without freezing the dependency. Commit: 708ef82. CI is running.

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