mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 14:40:48 +03:00
Add tests coverage job
This commit is contained in:
parent
2bdb73d7ec
commit
bf23caa20a
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
|
@ -3,7 +3,8 @@ name: Tests
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-py39:
|
|
||||||
|
test-with-versions:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -18,3 +19,21 @@ jobs:
|
||||||
- run: tox
|
- run: tox
|
||||||
env:
|
env:
|
||||||
TOXENV: ${{ matrix.python-version }}
|
TOXENV: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
test-coverage:
|
||||||
|
name: Run tests with coverage and report results to Coveralls.io
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
- run: |
|
||||||
|
pip install tox
|
||||||
|
pip install cython
|
||||||
|
make cythonize
|
||||||
|
- run: tox
|
||||||
|
env:
|
||||||
|
TOXENV: coveralls
|
||||||
|
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
|
||||||
|
COVERALLS_REPO_TOKEN: ${{ COVERALLS_REPO_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user