-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 877 Bytes
/
ci.yml
File metadata and controls
37 lines (34 loc) · 877 Bytes
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
name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install ruff
- run: ruff check .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install GTK3 + GObject introspection + pytest
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gir1.2-gtk-3.0 \
gir1.2-glib-2.0 \
gir1.2-gdkpixbuf-2.0 \
gir1.2-pango-1.0 \
python3-gi \
python3-pytest \
libgtk-layer-shell-dev \
gir1.2-gtklayershell-0.1
- name: Run tests
run: python3 -m pytest tests/ -v