From bf23caa20ae80ffc2c29445b55022f4810a683df Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 25 Jan 2021 17:53:53 -0500 Subject: [PATCH] Add tests coverage job --- .github/workflows/tests.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8fe9e586..bde81091 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} \ No newline at end of file + 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 }}