Skip to content

FIX: Test environments with only torch or onnxruntime installed#271

Merged
mscheltienne merged 11 commits intomne-tools:mainfrom
scott-huberty:deps
Oct 17, 2025
Merged

FIX: Test environments with only torch or onnxruntime installed#271
mscheltienne merged 11 commits intomne-tools:mainfrom
scott-huberty:deps

Conversation

@scott-huberty
Copy link
Contributor

@scott-huberty scott-huberty commented Oct 16, 2025

PR Description

Fixes #270

  • Demonstrate import failure ( ref )
  • Fix import failure

Merge checklist

Maintainer, please confirm the following before merging:

  • All comments resolved
  • All CIs are happy
  • Updated a changelog entry and contributor name in whats_new.rst is updated
  • PR description includes phrase "closes <#issue-number>"

@scott-huberty scott-huberty changed the title Deps FIX: Test environments with only torch or onnxruntime installed Oct 16, 2025
Copy link
Member

@mscheltienne mscheltienne left a comment

Choose a reason for hiding this comment

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

Thanks @scott-huberty for the excellent catch. A couple of comments, but beside it LGTM! This PR will have to be backported and released.

scott-huberty and others added 4 commits October 17, 2025 08:15
Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>
@scott-huberty
Copy link
Contributor Author

Instead of doubling all of the CIs, I would include 1 additional job pytest-backend which would operate on ubuntu + a single version of python, e.g. 3.12 and the matrix kind.
Then the default pytest simply installs both backend and runs all tests.

Done in 376de91

@scott-huberty
Copy link
Contributor Author

OK passing it back to you @mscheltienne 🙂

@mscheltienne mscheltienne merged commit b9e028b into mne-tools:main Oct 17, 2025
20 checks passed
@mscheltienne
Copy link
Member

Thanks a lot!

mscheltienne added a commit that referenced this pull request Oct 17, 2025
* Drop torch and onnx variants from text extras

* Test CI's in environments with either torch or onnxruntime installed

* TST: import or skip

* FIX: oops need to capture output of importorskip

* FIX: dep

* DOC: Note for Megnet users

* FIX, DOC: flaky link

* Revert "FIX, DOC: flaky link"

This reverts commit 49d678f.

* TST: Add backend job

* Update doc/install.rst

Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>

* FIX, STY: Flakes

---------

Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>
@scott-huberty scott-huberty deleted the deps branch October 17, 2025 15:58
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.

Onnxruntime is now a hard dependency of ICALABEL (And it should not be)

2 participants