Skip to content

Commit

Permalink
Turn on gui tests for mac
Browse files Browse the repository at this point in the history
Only test Python 3.10 to save time.

Co-authored by: Eivind <[email protected]>
  • Loading branch information
dafeda committed Sep 18, 2023
1 parent 1c6e2b8 commit 633385b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.10' ]
os: [ macos-latest ]
test-type: [ 'integration-tests', 'unit-tests', 'gui-test' ]
exclude:
- os: macos-latest
python-version: '3.9'
- os: macos-latest
test-type: 'gui-test'
- os: macos-latest
python-version: '3.10'
uses: ./.github/workflows/test_ert.yml
with:
os: ${{ matrix.os }}
Expand Down
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pkgutil
import resource
import shutil
import sys
from argparse import ArgumentParser
from os.path import dirname
from typing import TYPE_CHECKING, cast
Expand Down Expand Up @@ -180,7 +181,7 @@ def mock_connect(monkeypatch):

@pytest.fixture(scope="session", autouse=True)
def hide_window(request):
if request.config.getoption("--show-gui"):
if sys.platform == "darwin" or request.config.getoption("--show-gui"):
yield
return

Expand Down Expand Up @@ -214,8 +215,6 @@ def _qt_excepthook(monkeypatch):
"""

import sys

from qtpy.QtWidgets import QApplication

next_excepthook = sys.excepthook
Expand Down

0 comments on commit 633385b

Please sign in to comment.