Skip to content

Commit

Permalink
Add coverage workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
reedacartwright committed Jul 14, 2023
1 parent be09f0d commit 59840a1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
- name: Install Dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
if: ${{ failure() }}
with:
name: Linux_Meson_log
path: build/meson-logs/meson-log.txt
path: build/debug/meson-logs/meson-log.txt
41 changes: 41 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Coverage Report"

on:
workflow_run:
workflows: ["Build and Test"]
types:
- completed

jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
gcc-11 g++-11 \
libboost-all-dev \
libeigen3-dev
- name: Run Unit Tests
uses: BSFishy/meson-build@v1.0.3
with:
action: test
directory: build/debug
setup-options: -Db_test=true --buildtype=debug -Db_coverage=true -Db_benchmark=false
options: --verbose
meson-version: 0.61.2
- name: Run Coverage
uses: BSFishy/meson-build@v1.0.3
with:
action: coverage
directory: build/debug
setup-options: -Db_test=true --buildtype=debug -Db_coverage=true -Db_benchmark=false
options: --verbose
meson-version: 0.61.2
- name: Upload coverage results
uses: codecov/codecov-action@v2
with:
files: build/debug/meson-logs/coverage.xml

0 comments on commit 59840a1

Please sign in to comment.