-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (57 loc) · 1.7 KB
/
quality.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: quality
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash
env:
LANG: en_US.utf-8
LC_ALL: en_US.utf-8
PYTHONIOENCODING: UTF-8
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.10"
- name: Install dependencies and pre-commit hooks
run: make setup
- name: Run black
run: pdm run pre-commit run --all-files black
- name: Run flake8
run: pdm run pre-commit run --all-files flake8
- name: Run isort
run: pdm run pre-commit run --all-files isort
- name: Run end-of-file-fixer
run: pdm run pre-commit run --all-files end-of-file-fixer
- name: Run check-yaml
run: pdm run pre-commit run --all-files check-yaml
- name: Run debug-statements
run: pdm run pre-commit run --all-files debug-statements
- name: Run name-tests-test
run: pdm run pre-commit run --all-files name-tests-test
- name: Run requirements-txt-fixer
run: pdm run pre-commit run --all-files requirements-txt-fixer
- name: Run codespell
run: pdm run pre-commit run --all-files codespell
- name: Run pyupgrade
run: pdm run pre-commit run --all-files pyupgrade
- name: Run pdm-export
run: pdm run pre-commit run --all-files pdm-export
- name: Run pdm-lock-check
run: pdm run pre-commit run --all-files pdm-lock-check
- name: Run mypy
run: pdm run pre-commit run --all-files mypy