-
-
Notifications
You must be signed in to change notification settings - Fork 34
65 lines (63 loc) · 1.81 KB
/
build.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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macOS-11]
python_version: [3.9]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install APT dependencies
if: runner.os == 'Linux'
run: |
# libxcb-cursor0 needed since Qt 6.5
# https://stackoverflow.com/a/75941575/965332
sudo apt-get install -y qt5-default libfontconfig1 libxcb-cursor0
- name: Install dependencies
shell: bash
run: |
pip install poetry
python -m venv venv
source venv/bin/activate || source venv/Scripts/activate
poetry install
- name: Build
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make build
- name: Run tests
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make test
make typecheck
- name: Run integration tests
if: runner.os == 'Linux'
run: |
sudo apt-get install -y xvfb
source venv/bin/activate || source venv/Scripts/activate
env QT_DEBUG_PLUGINS=true xvfb-run --auto-servernum make test-integration;
- name: Package
shell: bash
run: |
source venv/bin/activate || source venv/Scripts/activate
make package
- name: Upload package
uses: actions/upload-artifact@v2-preview
with:
name: builds-${{ runner.os }}-py${{ matrix.python_version }}
path: dist/aw-qt