-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (62 loc) · 2.19 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: tests
on: [push, pull_request]
jobs:
tests:
name: ${{ matrix.os }} | ${{ matrix.python-version }} | ${{ matrix.pyqt-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: '3.9'
pyqt-version: '515'
- os: ubuntu-latest
python-version: '3.10'
pyqt-version: '515'
- os: ubuntu-latest
python-version: '3.11'
pyqt-version: '515'
- os: ubuntu-latest
python-version: '3.12'
pyqt-version: '515'
- os: ubuntu-latest
python-version: '3.13'
pyqt-version: '515'
- os: macos-latest
python-version: '3.11'
pyqt-version: '515'
- os: macos-latest
python-version: '3.12'
pyqt-version: '515'
- os: macos-latest
python-version: '3.13'
pyqt-version: '515'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install os dependencies
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
# Update package list
sudo apt-get update
# Required to run tests in headless mode
sudo apt-get install xvfb x11-utils
# Required since Qt 5.12
sudo apt-get install libxkbcommon-x11-0
# Required since Qt 5.15 due to removal of bundled xcb libs
# See: https://codereview.qt-project.org/c/qt/qtbase/+/253905
sudo apt-get install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0
# Install openjdk 11 from ubuntu repos
sudo apt-get install openjdk-11-jdk
- name: Install python dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/in/tox.in
- name: Run unit tests
run: |
tox -e py-pyqt${{ matrix.pyqt-version }}