From b692b772906b0a29d3f73322ecb8566bd0f75238 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 | 18 ++++++++++++++++-- changes/248.feature | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 changes/248.feature diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8c3a9d..4cd1dbc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: continue-on-error: ${{ matrix.continue-on-error }} strategy: matrix: - python-version: [3.11, 3.10.x, 3.9] + python-version: ["3.11", "3.10", "3.9"] django: [42, 32] cms: [nocms, cms311, async] continue-on-error: [false] @@ -46,10 +46,24 @@ 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 + flag-name: run-${{ format('py{0}-django{1}-{2}', matrix.python-version, matrix.django, matrix.cms) }} - 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