Add tests coverage job

This commit is contained in:
Roman Mogylatov 2021-01-25 17:53:53 -05:00
parent 2bdb73d7ec
commit bf23caa20a

View File

@ -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 }}