From c6ec61d289b36f2f60b1cf952351c5e7d9e581ed Mon Sep 17 00:00:00 2001 From: Bai-Li-NOAA Date: Thu, 2 Jan 2025 09:47:39 -0500 Subject: [PATCH] update build triggers to run GHA on push --- .github/workflows/call-calc-coverage-c.yml | 4 ++-- .github/workflows/call-calc-coverage-r.yml | 4 ++-- .github/workflows/get-gtest-codecov.yml | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/call-calc-coverage-c.yml b/.github/workflows/call-calc-coverage-c.yml index 80f287a3..c081b2e0 100644 --- a/.github/workflows/call-calc-coverage-c.yml +++ b/.github/workflows/call-calc-coverage-c.yml @@ -5,8 +5,8 @@ name: call-calc_coverage_c on: workflow_dispatch: push: - branches: - - main + # branches: + # - main paths-ignore: - .devcontainer - .github diff --git a/.github/workflows/call-calc-coverage-r.yml b/.github/workflows/call-calc-coverage-r.yml index e022ad38..0201f7c7 100644 --- a/.github/workflows/call-calc-coverage-r.yml +++ b/.github/workflows/call-calc-coverage-r.yml @@ -5,8 +5,8 @@ name: call-calc_coverage_r on: workflow_dispatch: push: - branches: - - main + # branches: + # - main paths-ignore: - .devcontainer - .github diff --git a/.github/workflows/get-gtest-codecov.yml b/.github/workflows/get-gtest-codecov.yml index 473e08a8..2442ea1f 100644 --- a/.github/workflows/get-gtest-codecov.yml +++ b/.github/workflows/get-gtest-codecov.yml @@ -4,8 +4,8 @@ name: get-gtest-codecov on: workflow_dispatch: push: - branches: - - main + # branches: + # - main paths-ignore: - .devcontainer - .github @@ -44,22 +44,22 @@ jobs: - name: Configure # Do not run -DBUILD_DOC=OFF locally. Only run cmake -S . -B build -G Ninja locally. run: | - cmake -S . -B build -DBUILD_DOC=OFF -G Ninja - + cmake -S . -B build -DBUILD_DOC=OFF -G Ninja + - name: Build - run: | + run: | cmake --build build --parallel 16 - + - name: Test run: | ctest --test-dir build --parallel 16 - + - name: Install gcovr run: | pip install gcovr - - name: Run gcovr - run: | + - name: Run gcovr + run: | gcovr --exclude tests/ --cobertura coverage.xml - name: save coverage report @@ -73,6 +73,6 @@ jobs: with: files: coverage.xml token: ${{ secrets.CODECOV_TOKEN }} - +