diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a22c69c..d82e67c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,8 +7,7 @@ on: branches: [master] jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: @@ -33,4 +32,20 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --per-file-ignores='*/__init__.py:F401' --statistics - name: Unit test run: | - pytest + python -m pytest --cov=./nuheat --cov-report lcov + - name: Coveralls Parallel + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + flag-name: run-${{ matrix.python-version }} + path-to-lcov: coverage.lcov + parallel: true + coveralls: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true diff --git a/setup.py b/setup.py index 4f0ca66..63c0d5f 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ 'coverage==6.5.0', 'mock==4.0.3', 'pytest==7.2.0', + 'pytest-cov==4.0.0', 'responses==0.22.0', ] },