Create common linters job

This commit is contained in:
Roman Mogylatov 2021-01-26 07:47:03 -05:00
parent 784bb5fed2
commit c6fb0bf018

View File

@ -42,9 +42,12 @@ jobs:
TOXENV: coveralls TOXENV: coveralls
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }} COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
mypy: linters:
name: Run mypy name: Run linters
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
toxenv: [flake8, pydocstyle, mypy, pylint]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
@ -53,4 +56,4 @@ jobs:
- run: pip install tox - run: pip install tox
- run: tox - run: tox
env: env:
TOXENV: mypy TOXENV: ${{ matrix.toxenv }}