Skip to content

Commit 0599d2a

Browse files
committed
Add GitHub workflows for testing with PyQt5 and PyQt6
1 parent 045be27 commit 0599d2a

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
python-version: ["3.9", "3.11", "3.13", "3.14"]
25+
python-version: ["3.9", "3.11", "3.14"]
2626

2727
steps:
2828
- uses: actions/checkout@v4

.github/workflows/test_pyqt6.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
# Inspired from https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
5+
6+
name: Build, install and test
7+
8+
on:
9+
push:
10+
branches: [ "master", "develop", "release" ]
11+
pull_request:
12+
branches: [ "master", "develop", "release" ]
13+
workflow_call:
14+
15+
jobs:
16+
build:
17+
18+
env:
19+
DISPLAY: ':99.0'
20+
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
python-version: ["3.9", "3.11", "3.14"]
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: |
35+
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
36+
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
37+
python -m pip install --upgrade pip
38+
python -m pip install ruff pytest
39+
pip install PyQt6
40+
pip install .
41+
- name: Lint with Ruff
42+
run: ruff check --output-format=github guidata
43+
- name: Test with pytest
44+
run: |
45+
pytest

0 commit comments

Comments
 (0)