Skip to content

Commit

Permalink
update build triggers to run GHA on push
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Li-NOAA committed Jan 2, 2025
1 parent 0ae28d8 commit c6ec61d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/call-calc-coverage-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: call-calc_coverage_c
on:
workflow_dispatch:
push:
branches:
- main
# branches:
# - main
paths-ignore:
- .devcontainer
- .github
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call-calc-coverage-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: call-calc_coverage_r
on:
workflow_dispatch:
push:
branches:
- main
# branches:
# - main
paths-ignore:
- .devcontainer
- .github
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/get-gtest-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: get-gtest-codecov
on:
workflow_dispatch:
push:
branches:
- main
# branches:
# - main
paths-ignore:
- .devcontainer
- .github
Expand Down Expand Up @@ -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
Expand All @@ -73,6 +73,6 @@ jobs:
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}



0 comments on commit c6ec61d

Please sign in to comment.