File tree 5 files changed +453
-357
lines changed
5 files changed +453
-357
lines changed Original file line number Diff line number Diff line change 8
8
pull_request :
9
9
10
10
jobs :
11
- black :
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@v2
15
- - name : Set up Python
16
- uses : actions/setup-python@v2
17
- with :
18
- python-version : " 3.9"
19
- - name : Install deps
20
- uses : knowsuchagency/poetry-install@v1
21
- env :
22
- POETRY_VIRTUALENVS_CREATE : false
23
- - name : Run black check
24
- run : poetry run black --check .
25
- flake8 :
26
- runs-on : ubuntu-latest
27
- steps :
28
- - uses : actions/checkout@v2
29
- - name : Set up Python
30
- uses : actions/setup-python@v2
31
- with :
32
- python-version : " 3.9"
33
- - name : Install deps
34
- uses : knowsuchagency/poetry-install@v1
35
- env :
36
- POETRY_VIRTUALENVS_CREATE : false
37
- - name : Run flake8 check
38
- run : poetry run flake8 --count .
39
- mypy :
11
+ lint :
12
+ strategy :
13
+ matrix :
14
+ cmd :
15
+ - black
16
+ - flake8
17
+ - isort
18
+ # mypy is disabled because redis>=5.0 has errors in typing
19
+ # - mypy
20
+ - autoflake
40
21
runs-on : ubuntu-latest
41
22
steps :
42
23
- uses : actions/checkout@v2
24
+ - name : Install poetry
25
+ run : pipx install poetry
43
26
- name : Set up Python
44
- uses : actions/setup-python@v2
27
+ uses : actions/setup-python@v4
45
28
with :
46
- python-version : " 3.9"
29
+ python-version : " 3.11"
30
+ cache : " poetry"
47
31
- name : Install deps
48
- uses : knowsuchagency/poetry-install@v1
49
- env :
50
- POETRY_VIRTUALENVS_CREATE : false
51
- - name : Run mypy check
52
- run : poetry run mypy .
32
+ run : poetry install
33
+ - name : Run lint check
34
+ run : poetry run pre-commit run -a ${{ matrix.cmd }}
53
35
pytest :
54
36
services :
55
37
redis :
You can’t perform that action at this time.
0 commit comments