forked from python-qt-tools/PyQt5-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (76 loc) · 2.21 KB
/
ci.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: CI
on:
push:
branches:
- master
- run-ci-on-windows
tags:
- v*
pull_request:
branches:
- "*"
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.os.name }} ${{ matrix.python.name }}
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
os:
- name: Linux
runs-on: ubuntu-latest
tox: linux
- name: macOS
runs-on: macos-latest
tox: macos
- name: Windows
runs-on: windows-latest
tox: windows
python:
- name: CPython 3.7
tox: py37
action: 3.7
- name: CPython 3.8
tox: py38
action: 3.8
- name: CPython 3.9
tox: py39
action: 3.9
- name: CPython 3.10
tox: py310
action: '3.10'
steps:
- uses: actions/checkout@v3
- name: Set up ${{ matrix.python.name }}
uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python.action }}.0-alpha - ${{ matrix.python.action }}.X'
architecture: x64
- uses: twisted/[email protected]
- name: Install Linux Qt5 dependencies
if: matrix.os.name == 'Linux'
run: |
sudo apt-get update --yes
# Required to stubtest QtMultimedia
sudo apt-get install --yes libpulse-mainloop-glib0
sudo apt-get install --yes libgl1 libgl1-mesa-dev xvfb x11-utils libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- name: Install
run: |
pip install --upgrade pip setuptools wheel
pip install tox
- name: Test
run: |
tox -v -e ${{ matrix.python.tox }}-${{ matrix.os.tox }}
all:
name: All
runs-on: ubuntu-latest
needs:
- test
steps:
- name: This
shell: python
run: |
import this