1- name : build
1+ name : test
22
33on : [push, pull_request]
44
@@ -8,42 +8,49 @@ concurrency:
88 cancel-in-progress : true
99
1010jobs :
11- build :
11+ package :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Build and Check Package
16+ 17+
18+ test :
19+
20+ needs : [package]
1221
1322 runs-on : ${{ matrix.os }}
1423 strategy :
1524 fail-fast : false
1625
1726 matrix :
18- python-version : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
27+ python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
1928 qt-lib : [pyqt5, pyqt6, pyside2, pyside6]
2029 os : [ubuntu-latest, windows-latest, macos-latest]
21- include :
22- - python-version : " 3.7"
23- tox-env : " py37"
24- - python-version : " 3.8"
25- tox-env : " py38"
26- - python-version : " 3.9"
27- tox-env : " py39"
28- - python-version : " 3.10"
29- tox-env : " py310"
30- - python-version : " 3.11"
31- tox-env : " py311"
3230 exclude :
3331 # Not installable:
3432 # ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none)
3533 - python-version : " 3.11"
3634 qt-lib : pyside2
3735 os : windows-latest
36+ - python-version : " 3.12"
37+ qt-lib : pyside2
3838
3939 steps :
4040 - uses : actions/checkout@v3
41+
4142 - name : Set up Python ${{ matrix.python-version }}
4243 uses : actions/setup-python@v3
4344 with :
4445 python-version : ${{ matrix.python-version }}
4546
46- - name : Install dependencies
47+ - name : Download Package
48+ uses : actions/download-artifact@v3
49+ with :
50+ name : Packages
51+ path : dist
52+
53+ - name : Install Dependencies
4754 run : |
4855 python -m pip install --upgrade pip
4956 pip install tox
5259 sudo apt-get install -y libgles2-mesa-dev
5360 fi
5461 shell : bash
55- - name : Test with tox
62+
63+ - name : Test
64+ shell : bash
5665 run : |
57- tox -e ${{ matrix.tox-env }}- ${{ matrix.qt-lib }} -- -ra --color=yes
66+ tox -e py- ${{ matrix.qt-lib }} --installpkg `find dist/*.tar.gz` -- -ra
0 commit comments