ci: install ipython so transformers.utils.notebook imports cleanly in zoo pytest (#5437)

unsloth_zoo's drift-detector tests/test_zoo_source_upstream_refs.py::
test_logging_utils_utils_notebook resolves transformers.utils.notebook,
which executes ``import IPython.display as disp`` at module scope. The
Core matrix install list did not include IPython, so the import raised
ModuleNotFoundError and the test failed with:

  DRIFT DETECTED: transformers.utils.notebook exists but its imports
  fail on this install (ModuleNotFoundError: No module named 'IPython')

The test message itself states the resolution: "Either install the dep
in CI or remove the zoo reference." Installing keeps the upstream-refs
detector functional. Add ipython to the matrix install list.
This commit is contained in:
Daniel Han 2026-05-15 01:25:23 -07:00 committed by GitHub
commit 5345b10b6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,8 @@ jobs:
'numpy<3' pytest==9.0.3 pytest-asyncio httpx \
protobuf sentencepiece triton \
psutil packaging tqdm safetensors datasets \
'peft>=0.18,<0.20' 'accelerate>=0.34,<2'
'peft>=0.18,<0.20' 'accelerate>=0.34,<2' \
ipython
# torchvision: unsloth_zoo.vision_utils imports it at module scope.
pip install --index-url https://download.pytorch.org/whl/cpu \
'torch>=2.4,<2.11' 'torchvision<0.26'