From 5300091a6e6335a0904b07ff398938cebeffb645 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 | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9ff14b1..ef1aaee 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -10,12 +10,11 @@ on: branches: [ master ] jobs: - build: - + test: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev'] + python-version: [ '3.8', '3.9', '3.10', '3.11-dev'] steps: - uses: actions/checkout@v2 @@ -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