-
Notifications
You must be signed in to change notification settings - Fork 73
47 lines (39 loc) · 1.11 KB
/
code-style-backend.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: Backend style
on:
workflow_dispatch:
pull_request:
paths:
- 'src/backend/**'
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -r src/backend/requirements-dev.txt
- name: Black check
run: python -m black --check src/backend/
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -r src/backend/requirements-dev.txt
- name: MyPy check
run: mypy --namespace-packages --package rekono --install-types --non-interactive