Skip to content

Commit

Permalink
Try longer tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Achard committed Mar 3, 2023
1 parent 42c8f94 commit b235e9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
# platform: [ubuntu-latest, windows-latest, macos-latest]
platform: [ubuntu-latest]
platform: [windows-latest, macos-latest]
python-version: [3.8, 3.9] # 3.10

steps:
Expand Down
10 changes: 5 additions & 5 deletions napari_cellseg3d/_tests/test_plugin_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def test_inference(make_napari_viewer, qtbot):

assert widget.check_ready()

# widget.start() # takes too long on Github Actions (~30min)
# assert widget.worker is not None
widget.start() # takes too long on Github Actions
assert widget.worker is not None

# with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker:
# blocker.connect(widget.worker.errored)
with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker:
blocker.connect(widget.worker.errored)

# assert len(viewer.layers) == 2
assert len(viewer.layers) == 2
8 changes: 4 additions & 4 deletions napari_cellseg3d/_tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def test_training(make_napari_viewer, qtbot):
# Training is too long to test properly this way. Do not use on Github
#################

# widget.start()
# assert widget.worker is not None
widget.start()
assert widget.worker is not None

# with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker: # wait only for 60 seconds.
# blocker.connect(widget.worker.errored)
with qtbot.waitSignal(signal=widget.worker.finished, timeout=60000, raising=False) as blocker: # wait only for 60 seconds.
blocker.connect(widget.worker.errored)


def test_update_loss_plot(make_napari_viewer):
Expand Down

0 comments on commit b235e9e

Please sign in to comment.