-
-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (61 loc) · 1.62 KB
/
ci.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
66
67
68
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
flake8:
name: Linter
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt update -y
sudo apt -y install flake8
- name: Lint with flake8
run: |
flake8 --builtins=_ --ignore E402,W503 --max-complexity=10 --max-line-length=110 --show-source --statistics src/
mypy:
name: Static Type Checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt update -y
sudo apt -y install mypy
- name: Check with MyPy
run: |
mypy --ignore-missing-imports --disallow-incomplete-defs src
typos:
name: Typos
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check for typos
uses: crate-ci/typos@master
flatpak:
name: Flatpak
runs-on: ubuntu-22.04
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v3
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: breathing.flatpak
manifest-path: io.github.seadve.Breathing.json
run-tests: true
cache-key: flatpak-builder-${{ github.sha }}