mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-27 17:25:03 +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:
|
test-coverage:
|
||||||
name: Run tests with coverage
|
name: Run tests with coverage
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Get the current branch name
|
- name: Get the current branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -33,11 +37,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- run: pip install tox cython
|
- run: pip install tox cython
|
||||||
- run: |
|
- run: make cythonize
|
||||||
make cythonize
|
- run: tox
|
||||||
tox
|
|
||||||
env:
|
env:
|
||||||
TOXENV: coveralls
|
TOXENV: coveralls
|
||||||
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
|
|
||||||
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
|
mypy:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
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