Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip failing tests and use macos13 worker #40

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
platform: [ubuntu-latest, windows-latest, macos-13]
python-version: ["3.9", "3.10", "3.11"]
napari: ["latest", "repo"]
exclude:
Expand Down
15 changes: 9 additions & 6 deletions napari_plugin_manager/_tests/test_qt_plugin_dialog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import importlib.metadata
import platform
import sys
from typing import Generator, Optional, Tuple
from unittest.mock import patch
Expand All @@ -10,16 +11,18 @@
from napari.plugins._tests.test_npe2 import mock_pm # noqa
from napari.utils.translations import trans

from napari_plugin_manager import qt_plugin_dialog
from napari_plugin_manager.qt_package_installer import InstallerActions

if qtpy.API_NAME == 'PySide2' and sys.version_info[:2] == (3, 11):
if (qtpy.API_NAME == 'PySide2' and platform.system() != "Linux") or (
sys.version_info[:2] > (3, 10) and platform.system() == "Linux"
):
pytest.skip(
"Known PySide2 x Python 3.11 incompatibility: "
"TypeError: 'PySide2.QtCore.Qt.Alignment' object cannot be interpreted as an integer",
"Known PySide2 x Python incompatibility: "
"... object cannot be interpreted as an integer",
allow_module_level=True,
)

from napari_plugin_manager import qt_plugin_dialog
from napari_plugin_manager.qt_package_installer import InstallerActions

N_MOCKED_PLUGINS = 2


Expand Down
Loading