-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (61 loc) · 1.83 KB
/
lint.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: py${{ matrix.python-version }} @ ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.7"
os: "ubuntu-20.04"
- python-version: "3.7"
os: "ubuntu-22.04"
- python-version: "3.8"
os: "ubuntu-20.04"
- python-version: "3.8"
os: "ubuntu-22.04"
- python-version: "3.9"
os: "ubuntu-22.04"
- python-version: "3.10"
os: "ubuntu-22.04"
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: true
steps:
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: "Europe/Berlin"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
pip install --upgrade pip
pip install setuptools_rust
- name: Install dependencies
run: pip install .
- uses: ricardochaves/python-lint@v1.4.0
with:
python-root-list: "src/ test/"
use-pylint: false
use-pycodestyle: true
use-flake8: true
use-black: false
use-mypy: true
use-isort: true
extra-pylint-options: ""
extra-pycodestyle-options: ""
extra-flake8-options: ""
extra-black-options: ""
extra-mypy-options: "--ignore-missing-imports"
extra-isort-options: ""