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