From ea57c71078497a9b90725a382366c5bb4939bb42 Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Thu, 9 Nov 2023 16:02:39 +0100 Subject: [PATCH] Switch to Coveralls Github action --- .github/workflows/test.yml | 17 ++++++++++++++++- changes/248.feature | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 changes/248.feature diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8c3a9d..8423003 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,8 @@ name: Tox tests on: [push, pull_request] +env: + COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_attempt }} jobs: test: if: "!contains(github.event.head_commit.message, '[skip ci]')" @@ -46,10 +48,23 @@ jobs: run: | tox -e$TOX_ENV .tox/$TOX_ENV/bin/coverage xml - .tox/$TOX_ENV/bin/coveralls + - name: Coveralls Parallel + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel: true - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests files: ./coverage.xml fail_ci_if_error: false + finish: + needs: test + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true diff --git a/changes/248.feature b/changes/248.feature new file mode 100644 index 0000000..ac23805 --- /dev/null +++ b/changes/248.feature @@ -0,0 +1 @@ +Switch to Coveralls Github action