fixing concurancy and coverage ci

This commit is contained in:
matlabbe
2026-05-16 21:31:11 -07:00
parent c295b35a8a
commit c7bb107d2e
2 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ jobs:
name: ${{ matrix.build_name }} name: ${{ matrix.build_name }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }} # Use build_name, not os: ubuntu-24.04 and ubuntu-24.04-with-opengv share the same runner.
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build_name }}
cancel-in-progress: true cancel-in-progress: true
strategy: strategy:
fail-fast: true fail-fast: true
+7 -6
View File
@@ -5,12 +5,11 @@ on:
branches: branches:
- master - master
pull_request: pull_request:
branches: workflow_dispatch:
- '**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: permissions:
contents: read contents: read
@@ -23,6 +22,8 @@ jobs:
coverage: coverage:
name: Coverage (ubuntu-24.04) name: Coverage (ubuntu-24.04)
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -73,7 +74,7 @@ jobs:
run: | run: |
export LD_LIBRARY_PATH="${{ github.workspace }}/build/bin${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="${{ github.workspace }}/build/bin${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
find ${{ github.workspace }}/build -name '*.gcda' -delete find ${{ github.workspace }}/build -name '*.gcda' -delete
ctest --output-on-failure || true ctest --output-on-failure
- name: Generate LCOV report - name: Generate LCOV report
run: | run: |
@@ -114,9 +115,9 @@ jobs:
retention-days: 14 retention-days: 14
- name: Upload to Codecov - name: Upload to Codecov
if: ${{ secrets.CODECOV_TOKEN != '' }} if: ${{ env.CODECOV_TOKEN != '' }}
uses: codecov/codecov-action@v5 uses: codecov/codecov-action@v5
with: with:
files: lcov.info files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ env.CODECOV_TOKEN }}
fail_ci_if_error: false fail_ci_if_error: false