-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (45 loc) · 1.05 KB
/
tests.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
on:
# The tests are currently only available on master, so only run when
# pushing to master or pull requests targeting master.
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
strategy:
# Let other configurations continue if one fails.
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
runs-on: ${{ matrix.os }}
name: Run tests
steps:
- name: System dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
flatpak \
gir1.2-glib-2.0 \
gir1.2-flatpak-1.0 \
gir1.2-ostree-1.0 \
gpg \
gpgv \
ostree \
python3-gi \
python3-pip
- name: Python dependencies
run: |
python3 -m pip install flake8 pytest
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: |
python3 -m flake8
- name: Tests
run: |
python3 -m pytest