mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-29 13:04:02 +03:00
Move linters to tests workflow
This commit is contained in:
parent
35320d3da6
commit
cf06014779
18
.github/workflows/linters.yml
vendored
18
.github/workflows/linters.yml
vendored
|
@ -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
|
25
.github/workflows/tests.yml
vendored
25
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user