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
23
.github/workflows/tests.yml
vendored
23
.github/workflows/tests.yml
vendored
|
@ -3,7 +3,8 @@ name: Tests
|
|||
on: push
|
||||
|
||||
jobs:
|
||||
test-py39:
|
||||
|
||||
test-with-versions:
|
||||
name: Run tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
@ -17,4 +18,22 @@ jobs:
|
|||
- run: pip install tox
|
||||
- run: tox
|
||||
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