From 9bb6fa436763333e8742f28a62c20a89fac2a098 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 20 Sep 2023 14:56:31 +0200 Subject: [PATCH] add codecov --- .github/workflows/CI.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8cabd7c8..5a935974 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,6 @@ on: paths-ignore: - 'LICENSE.md' - 'README.md' - - '.zenodo.json' - '.github/workflows/CompatHelper.yml' - '.github/workflows/TagBot.yml' - 'docs/**' @@ -15,16 +14,17 @@ on: paths-ignore: - 'LICENSE.md' - 'README.md' - - '.zenodo.json' - '.github/workflows/CompatHelper.yml' - '.github/workflows/TagBot.yml' - 'docs/**' workflow_dispatch: + concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: if: "!contains(github.event.head_commit.message, 'skip ci')" @@ -55,7 +55,18 @@ jobs: - uses: codecov/codecov-action@v3 with: files: lcov.info - #- uses: coverallsapp/github-action@master - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} - # path-to-lcov: ./lcov.info + - uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: run-${{ matrix.os }}-${{ matrix.version }}-${{ matrix.arch }}-${{ github.run_id }} + parallel: true + path-to-lcov: ./lcov.info + finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true