diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a8f0d77..506bf2a 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -3,10 +3,11 @@ name: Python package on: [push] jobs: - build: + test: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: python-version: [3.5, 3.7, 3.8] @@ -27,4 +28,23 @@ jobs: - name: Test with unittest run: | coverage run --source=stcgal setup.py test - coveralls \ No newline at end of file + - name: Coveralls + run: | + coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: ${{ matrix.python-version }} + COVERALLS_PARALLEL: true + + coveralls: + name: Finish Coveralls + needs: test + runs-on: ubuntu-latest + container: python:3-slim + steps: + - name: Finished + run: | + pip3 install --upgrade coveralls + coveralls --finish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file