1
- name : test
1
+ name : Run Tests
2
2
3
3
on : [push]
4
4
5
5
jobs :
6
6
ci :
7
- name : Python-${{ matrix.python }} ${{ matrix.qt.qt_api }}
8
- runs-on : ubuntu-latest
7
+ name : Python-${{ matrix.python }} ${{ matrix.os }} ${{ matrix. qt.qt_api }}
8
+ runs-on : ${{ matrix.os }}
9
9
strategy :
10
10
fail-fast : false
11
11
matrix :
12
+ os : [ubuntu-latest, windows-latest]
13
+ python : ["3.6", "3.7", "3.8", "3.9"]
12
14
qt :
13
15
- package : PyQt5
14
16
qt_api : " pyqt5"
@@ -18,30 +20,37 @@ jobs:
18
20
qt_api : " pyside2"
19
21
- package : PySide6
20
22
qt_api : " pyside6"
21
- python : [3.6, 3.7, 3.8, 3.9]
23
+ # exclude:
24
+ # - {os: windows-latest, qt: {package: PySide2}}
22
25
23
26
steps :
24
27
- name : Checkout
25
- uses : actions/checkout@v1
28
+ uses : actions/checkout@v3
29
+
26
30
- name : Set up Python
27
- uses : actions/setup-python@v2
31
+ uses : actions/setup-python@v4
28
32
with :
29
33
python-version : ${{ matrix.python }}
30
34
architecture : x64
35
+
31
36
- name : Install pipenv
32
37
run : |
33
38
python -m pip install --upgrade pipenv wheel
39
+
34
40
- name : Install dependencies
35
41
run : |
36
- pipenv install --dev
37
- pipenv run pip install ${{ matrix.qt.package }} pytest
42
+ pipenv install --python ${{ matrix.python }} --dev
43
+ pipenv run --python ${{ matrix.python }} pip install ${{ matrix.qt.package }} pytest
44
+
38
45
- name : Install Libxcb dependencies
46
+ if : matrix.os == 'ubuntu-latest'
39
47
run : |
40
48
sudo apt-get update
41
49
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
50
+
42
51
- name : Run headless test
43
- uses : GabrielBB/xvfb-action@v1
52
+ uses : GabrielBB/xvfb-action@v1.6
44
53
env :
45
54
QT_API : ${{ matrix.qt.qt_api }}
46
55
with :
47
- run : pipenv run py.test --forked -v
56
+ run : pipenv run --python ${{ matrix.python }} pytest -v
0 commit comments