-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 951 Bytes
/
check.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
---
name: Check
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "poetry"
- name: Install dependencies
run: |
sudo apt install libgirepository1.0-dev
poetry env use $(which python3.10)
poetry install
- name: Lint with flake8
run: poetry run flake8
- name: Check formatting with black
run: poetry run black --check --diff --color .
- name: Check import sorting with isort
run: poetry run isort --check --diff --color .
- name: Check type annotation with mypy
run: poetry run mypy --strict .