File tree Expand file tree Collapse file tree 5 files changed +453
-357
lines changed Expand file tree Collapse file tree 5 files changed +453
-357
lines changed Original file line number Diff line number Diff line change 88 pull_request :
99
1010jobs :
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
4021 runs-on : ubuntu-latest
4122 steps :
4223 - uses : actions/checkout@v2
24+ - name : Install poetry
25+ run : pipx install poetry
4326 - name : Set up Python
44- uses : actions/setup-python@v2
27+ uses : actions/setup-python@v4
4528 with :
46- python-version : " 3.9"
29+ python-version : " 3.11"
30+ cache : " poetry"
4731 - 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 }}
5335 pytest :
5436 services :
5537 redis :
You can’t perform that action at this time.
0 commit comments