diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf55df533..bb7294d14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,23 +80,20 @@ jobs: DEST_SANIC: examples/sanic PYTHONDEVMODE: 1 PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --cov-branch --tb=native -q" + - name: Generate coverage report + run: coverage xml - name: Upload Coverage - run: | - pip3 install --upgrade coveralls - coveralls --service=github - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.python-version }} - COVERALLS_PARALLEL: true + uses: coverallsapp/github-action@v2 + with: + parallel: true + file: coverage.xml coveralls: name: Finish Coveralls needs: test - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - name: Finished - run: | - pip3 install --upgrade coveralls - coveralls --finish - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Finished + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true