From eddbe8777ef15c969488af526d25d786993e783f Mon Sep 17 00:00:00 2001 From: ljnsn Date: Thu, 7 Mar 2024 01:43:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20switch=20to=20coveralls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pythonpackage.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 8efa1ab..9642344 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -61,30 +61,28 @@ jobs: run: python -m pdm install -dG test - name: Test run: python -m pdm run test + - name: Coveralls Parallel + uses: coverallsapp/github-action@v2 + with: + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true - name: Archive code coverage results uses: actions/upload-artifact@v3 with: name: coverage-${{ matrix.platform }}-${{ matrix.python-version }} path: reports/.coverage - upload-coverage: - runs-on: ubuntu-latest + coveralls-finish: needs: [python-test] + if: ${{ always() }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Install tools - run: python -m pip install coverage requests tomli - - name: Download coverage reports - uses: actions/download-artifact@v3 - - name: Combine reports - run: | - coverage combine $(ls ./**/.coverage) - coverage report - coverage xml - - name: Upload coverage - uses: codecov/codecov-action@v4 + - name: Coveralls Finished + uses: coverallsapp/github-action@v2.2.3 with: - files: reports/coverage.xml + parallel-finished: true + carryforward: "run-ubuntu-latest-3.10,run-ubuntu-latest-3.11,run-ubuntu-latest-3.12,run-windows-latest-3.10,run-windows-latest-3.11,run-windows-latest-3.12" + bump-version: runs-on: ubuntu-latest