-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (64 loc) · 2.03 KB
/
validations.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Checks
on: [pull_request, push]
jobs:
validate-vermin:
name: vermin for v3.9 / windows-latest
runs-on: windows-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Install Python v3.9 dependencies
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'
cache: "pip"
- run: pip install -r requirements.txt
- name: Validate Python version v3.9 (vermin)
run: |
vermin src --config-file=setup.cfg
type-check-mypy:
name: mypy for v${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.12']
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Install Python v${{ matrix.python-version }} dependencies
uses: actions/setup-python@v5.1.0
with:
python-version: '${{ matrix.python-version }}'
cache: "pip"
- run: pip install -r requirements.txt
- name: Type-check for v${{ matrix.python-version }} (mypy)
run: mypy src --config-file=setup.cfg
lint-flake8:
name: flake8 for v3.9 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Install Python v3.9 dependencies
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'
cache: "pip"
- run: pip install -r requirements.txt
- name: Lint for v3.9 (flake8)
run: flake8 src
lint-black:
name: black for v3.9 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Install Python v3.9 dependencies
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'
cache: "pip"
- run: pip install -r requirements.txt
- name: Lint for v3.9 (black)
run: black src --check --diff --color