Skip to content
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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ jobs:
timeout-minutes: 15
if: ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith(matrix.os, 'windows') }}
run: |
hatch run cov:test --cov-fail-under 50 || hatch run test:test --lf
hatch run cov:test --cov-fail-under 50

- name: Run the tests on pypy
timeout-minutes: 15
if: ${{ startsWith( matrix.python-version, 'pypy' ) }}
run: |
hatch run test:nowarn || hatch run test:nowarn --lf
hatch run test:nowarn

- name: Run the tests on Windows
timeout-minutes: 15
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
hatch run cov:nowarn || hatch run test:nowarn --lf
hatch run cov:nowarn

- name: Check Launcher
run: |
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:

- name: Run the tests
timeout-minutes: 15
run: pytest -W default -vv || pytest --vv -W default --lf
run: pytest -W default -vv

test_miniumum_versions:
name: Test Minimum Versions
Expand All @@ -164,7 +164,7 @@ jobs:

- name: Run the unit tests
run: |
hatch -v run test:nowarn || hatch run test:nowarn --lf
hatch -v run test:nowarn

test_prereleases:
name: Test Prereleases
Expand All @@ -179,7 +179,7 @@ jobs:
dependency_type: pre
- name: Run the tests
run: |
hatch run test:nowarn || hatch run test:nowarn --lf
hatch run test:nowarn

make_sdist:
name: Make SDist
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
python: "3.13"

sphinx:
configuration: docs/conf.py
Expand Down
16 changes: 10 additions & 6 deletions tests/test_eventloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,16 @@ def test_cocoa_loop(kernel):
loop_cocoa(kernel)


@pytest.mark.skipif(
len(qt_guis_avail) == 0, reason="No viable version of PyQt or PySide installed."
)
def test_qt_enable_gui(kernel, capsys):
gui = qt_guis_avail[0]

@pytest.mark.parametrize("gui", qt_guis_avail)
def test_qt_enable_gui(gui, kernel, capsys):
if os.getenv("GITHUB_ACTIONS", None) == "true" and gui == "qt5":
pytest.skip("Qt5 and GitHub action crash CPython")
if gui == "qt6" and sys.version_info < (3, 10):
pytest.skip(
"qt6 fails on 3.9 with AttributeError: module 'PySide6.QtPrintSupport' has no attribute 'QApplication'"
)
if sys.platform == "linux" and gui == "qt6" and os.getenv("GITHUB_ACTIONS", None) == "true":
pytest.skip("qt6 fails on github CI with missing libEGL.so.1")
enable_gui(gui, kernel)

# We store the `QApplication` instance in the kernel.
Expand Down
Loading