Skip to content

Commit 56aeb65

Browse files
committed
update ci to test on all major oses
1 parent f126708 commit 56aeb65

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ jobs:
2626
run: make check
2727

2828
tests-and-type-check:
29-
runs-on: ubuntu-latest
3029
strategy:
3130
matrix:
31+
os: [ubuntu-latest, windows-latest, macos-latest]
3232
python-version: ["3.10", "3.11", "3.12", "3.13"]
3333
fail-fast: false
34+
runs-on: ${{ matrix.os }}
3435
defaults:
3536
run:
3637
shell: bash

cillow/interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def is_running_in_jupyter() -> bool:
153153
"""Check if the interpreter is running in a Jupyter notebook"""
154154
try:
155155
shell = get_ipython().__class__.__name__ # type: ignore[name-defined]
156-
return shell == "ZMQInteractiveShell"
156+
return shell == "ZMQInteractiveShell" # type: ignore[no-any-return]
157157
except NameError:
158158
return False
159159

@@ -178,7 +178,7 @@ def default_stream_processor(stream: Stream | ByteStream) -> None:
178178
if stream.type == "image":
179179
if is_running_in_jupyter():
180180
# Render the image in the Jupyter notebook output cell
181-
from IPython.display import Image, display # type: ignore[unused-ignore]
181+
from IPython.display import Image, display # type: ignore[unused-ignore,import-not-found]
182182

183183
display(Image(data=stream.data))
184184
else:

0 commit comments

Comments
 (0)