-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (75 loc) · 2.47 KB
/
test.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
name: Test
on: [ push ]
jobs:
gui_test:
strategy:
fail-fast: false
matrix:
pyqt: [ 'PyQt5', 'PyQt6', 'PySide2', 'PySide6' ]
os: [ ubuntu-20.04 ]
python-version: [ '3.7', '3.10' ]
include:
- python-version: '3.8'
pyqt: 'PyQt5'
os: ubuntu-20.04
- python-version: '3.9'
pyqt: 'PyQt5'
os: ubuntu-20.04
- python-version: '3.7'
pyqt: 'PyQt5'
os: macos-10.15
- python-version: '3.7'
pyqt: 'PyQt5'
os: macos-11
- python-version: '3.7'
pyqt: 'PyQt5'
os: macos-12
- python-version: '3.10'
pyqt: 'PyQt6'
os: macos-12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- if: matrix.os == 'ubuntu-20.04'
name: Prepare GUI tests
run: |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
/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
sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest-xvfb
pip install -e .[test]
pip install ${{ matrix.pyqt }}
- name: Test with pytest
env:
DISPLAY: ':99.0'
run: |
./tst.sh
- if: matrix.pyqt == 'PyQt5' && matrix.python-version == '3.7' && matrix.os == 'ubuntu-20.04'
name: coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --service=github
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
- name: Lint with flake8
run: |
flake8 qtanim