-
Notifications
You must be signed in to change notification settings - Fork 199
86 lines (84 loc) · 2.94 KB
/
main.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
77
78
79
80
81
82
83
84
85
86
name: tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
environment:
- py37-pyqt62-ubuntu2204
- py38-pyqt63-ubuntu
- py39-windows
- py310-pyqt64-ubuntu
- py311-pyqt65-ubuntu
- py312-pyqt67-ubuntu2404
- py313-ubuntu
include:
- environment: py37-pyqt62-ubuntu2204
python: 3.7
pyqt: PyQt6~=6.2.0 PyQt6-Qt6~=6.2.0 PyQt6-sip~=13.6.0
pygments: Pygments
platform: ubuntu-22.04
- environment: py38-pyqt63-ubuntu
python: 3.8
pyqt: PyQt6~=6.3.0 PyQt6-Qt6~=6.3.0 PyQt6-sip~=13.8.0
pygments: Pygments
platform: ubuntu-latest
- environment: py39-windows
python: 3.9
pyqt: PyQt6
pygments: Pygments
platform: windows-latest
- environment: py310-pyqt64-ubuntu
python: '3.10'
pyqt: PyQt6~=6.4.0 PyQt6-Qt6~=6.4.0
pygments: Pygments
platform: ubuntu-latest
- environment: py311-pyqt65-ubuntu
python: '3.11'
pyqt: PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0
pygments: Pygments
platform: ubuntu-latest
- environment: py312-pyqt67-ubuntu2404
python: '3.12'
pyqt: PyQt6~=6.7.0 PyQt6-Qt6~=6.7.0
pygments: Pygments
platform: ubuntu-24.04
- environment: py313-ubuntu
python: '3.13'
pyqt: PyQt6
pygments: Pygments
platform: ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install apt dependencies
if: ${{ startsWith(matrix.platform, 'ubuntu') }}
run: |
sudo apt update
sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-cursor0 libxcb-xinerama0
sudo apt install libegl1 libxkbcommon-x11-0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
run: |
python -m pip install ${{ matrix.pyqt }} ${{ matrix.pygments }}
python -m pip install Markdown pymdown-extensions docutils chardet Markups
- name: Run tests in Xvfb
if: ${{ startsWith(matrix.platform, 'ubuntu') }}
run: xvfb-run -a -s "-screen 0 1024x768x24" python -m unittest discover -s tests -v
- name: Run tests
if: ${{ !startsWith(matrix.platform, 'ubuntu') }}
run: python -m unittest discover -s tests -v
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install ruff
run: python -m pip install ruff
- name: Run ruff check
run: ruff check --select F,E,W,I,UP --ignore E501 .