-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 845 Bytes
/
lint.yml
File metadata and controls
34 lines (32 loc) · 845 Bytes
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
name: linting
on:
- push
- pull_request
jobs:
typing-check:
name: mypy Typing Check
runs-on: ubuntu-latest
steps:
# setup python
- name: Checkout
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: "pip"
cache-dependency-path: "requirements*.txt"
- name: Install modules
run: pip install -r requirements.txt -r requirements-dev.txt
# run mypy
- name: Run mypy
run: python -m mypy
formatting-check:
name: YAPF Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run YAPF to test if python code is correctly formatted
uses: AlexanderMelde/yapf-action@v1.0
with:
args: --verbose