-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (40 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
50 lines (40 loc) · 1.24 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.11", "3.12"]
env:
# TraitsUI needs a toolkit at import time; run Qt against the offscreen
# platform plugin so no display server is required.
QT_QPA_PLATFORM: offscreen
ETS_TOOLKIT: qt
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install system libraries for Qt
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libegl1 libgl1 libxkbcommon-x11-0 libdbus-1-3 \
libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -e '.[qt,dev]'
- name: Lint
run: ruff check .
- name: Check formatting
run: ruff format --check .
- name: Run tests
run: pytest --cov=pyguitemplate --cov-report=term-missing