-
Notifications
You must be signed in to change notification settings - Fork 36
47 lines (37 loc) · 921 Bytes
/
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
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
- name: Install Python dependencies
run: |
poetry install
- name: Install runtime dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
gir1.2-gtk-3.0 \
gir1.2-gst-plugins-base-1.0 \
gir1.2-freedesktop \
gir1.2-glib-2.0 \
libgirepository1.0-dev \
libatk1.0-dev \
libsoup2.4-dev \
libgtk-3-dev \
libges-1.0-dev \
libunwind-dev
- name: Run tests
run: |
poetry run pytest
- name: Run flake8
run: |
poetry run flake8