From f0281339b469ec71da8076c36fd7046c11f8a489 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Wed, 13 Jul 2022 14:14:42 +0200 Subject: [PATCH] fix coveralls --- .github/workflows/python-test.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9ff14b1..7b6b8a3 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,8 +10,7 @@ on: branches: [ master ] jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: @@ -26,7 +25,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 nose coverage + pip install flake8 nose coverage lcov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install pyrad run: | @@ -37,11 +36,25 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Run unittest + - name: Run unittest with coverage run: | coverage run -m unittest discover coverage report -m + coverage lcov - name: Coveralls uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.COVERALLS_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: run-${{ matrix.python-version }} + path-to-lcov: coverage.lcov + parallel: true + + finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true \ No newline at end of file