Move linters to tests workflow

This commit is contained in:
Roman Mogylatov 2021-01-26 07:38:41 -05:00
parent 35320d3da6
commit cf06014779
2 changed files with 19 additions and 24 deletions

View File

@ -1,18 +0,0 @@
name: Linters
on: [push, workflow_dispatch]
jobs:
mypy:
name: Run mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install tox
- run: tox
env:
TOXENV: mypy

View File

@ -23,6 +23,10 @@ jobs:
test-coverage:
name: Run tests with coverage
runs-on: ubuntu-latest
env:
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
steps:
- name: Get the current branch name
shell: bash
@ -33,11 +37,20 @@ jobs:
with:
python-version: 3.9
- run: pip install tox cython
- run: |
make cythonize
tox
- run: make cythonize
- run: tox
env:
TOXENV: coveralls
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
mypy:
name: Run mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install tox
- run: tox
env:
TOXENV: mypy