-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 976 Bytes
/
python.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
---
name: Python Lint
on:
push:
paths:
- '**.py'
jobs:
flake8_py3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
architecture: x64
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8_py3' # NOTE: needs to be same as job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
mypy:
runs-on: ubuntu-latest
name: Mypy
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Mypy
run: |
pip install mypy
pip install -r scripts/requirements-mypy.txt
- name: mypy
run: |
mypy scripts/
...