-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.02 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
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11"]
qt-lib: ["pyqt5", "pyqt6", "pyside2", "pyside6"]
os: [ubuntu-latest, windows-latest]
include:
- python: "3.10"
tox-env: "py310"
- python: "3.11"
tox-env: "py311"
exclude:
- python: "3.11"
qt-lib: "pyside2"
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install mesa
if: runner.os == 'Linux'
run: |
sudo apt-get update -y
sudo apt-get install -y libgles2-mesa-dev
shell: bash
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test
run: |
tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} -- -ra --color=yes