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 Apr 29, 2022
1 parent 3eae8a3 commit 7a73696
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
15 changes: 14 additions & 1 deletion .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 @@ -77,7 +82,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install linux system dependencies
run: sudo apt-get install -y libxkbcommon-x11-0
run: sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libegl1-mesa

- name: Install Tox
run: |
Expand Down Expand Up @@ -118,6 +123,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 @@ -38,9 +38,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 @@ -79,6 +79,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 7a73696

Please sign in to comment.