Skip to content

magic eraser added. contact widget spinbox removed. install should co… #23

magic eraser added. contact widget spinbox removed. install should co…

magic eraser added. contact widget spinbox removed. install should co… #23

name: Test and Coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-and-coverage:
runs-on: ubuntu-latest
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Common Setup
uses: ./.github/actions/linux-setup
with:
buildfolder: out/build/GCC/Debug
compiler: gcc
- name: Configure CMake with coverage
run: cmake --preset linux-gcc-debug -DCODE_COVERAGE=ON -DenableAddressSanitizer=ON
- name: Build
run: cmake --build --preset linux-gcc-debug
- name: Test
run: ctest --verbose --preset linux-gcc-debug -C linux-gcc-debug
working-directory: ${{ github.workspace }}
- name: Capture coverage info
run: |
lcov --directory /home/runner/work/WhiskerToolbox/WhiskerToolbox/out/build/GCC/Debug --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/out/*' '*/opt/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
path-to-lcov: coverage.info