Skip to content

Commit

Permalink
CI: Test with PyQt6
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 12, 2022
1 parent 12dc686 commit 2ff5d9e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
python-version: 3.7
tox_env: orange-oldest
name: Oldest dependencies
- os: ubuntu-20.04
python-version: 3.9
tox_env: pyqt6
name: PyQt6


services:
postgres:
Expand Down Expand Up @@ -120,6 +125,14 @@ jobs:
python-version: 3.8
tox_env: orange-latest
name: Latest
- os: windows-latest
python-version: 3.9
tox_env: pyqt6
name: PyQt6
- os: macos-10.15
python-version: 3.9
tox_env: pyqt6
name: PyQt6

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions requirements-gui.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
orange-canvas-core>=0.1.24,<0.2a
orange-canvas-core>=0.1.26,<0.2a
orange-widget-base>=4.17.0

AnyQt>=0.0.14
AnyQt>=0.1.0

# ignore pyqtgraph 0.12.4 due to https://github.com/pyqtgraph/pyqtgraph/issues/2237
pyqtgraph>=0.12.2,!=0.12.4
Expand Down
21 changes: 18 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ deps =
latest: https://github.com/pyqtgraph/pyqtgraph/archive/refs/heads/master.zip#egg=pyqtgraph
latest: https://github.com/biolab/orange-canvas-core/archive/refs/heads/master.zip#egg=orange-canvas-core
latest: https://github.com/biolab/orange-widget-base/archive/refs/heads/master.zip#egg=orange-widget-base
oldest: orange-canvas-core==0.1.24
oldest: orange-widget-base==4.16.1
oldest: AnyQt==0.0.13
oldest: orange-canvas-core==0.1.26
oldest: orange-widget-base==4.17.0
oldest: AnyQt==0.1.0
oldest: pyqtgraph==0.11.1
oldest: matplotlib==2.2.5
oldest: qtconsole==4.7.2
Expand Down Expand Up @@ -80,6 +80,21 @@ commands =
coverage combine
coverage report

[testenv:pyqt6]
changedir =
{envsitepackagesdir}
setenv =
QT_API=PyQt6
ANYQT_HOOK_DENY=pyqt5
deps =
PyQt6==6.2.*
PyQt6-Qt6==6.2.*
PyQt6-WebEngine==6.2.*
PyQt6-WebEngine-Qt6==6.2.*

commands =
python -m unittest Orange.widgets.tests

[testenv:add-ons]
deps =
{[testenv]deps}
Expand Down

0 comments on commit 2ff5d9e

Please sign in to comment.