Skip to content

Serde WIP

Serde WIP #10

name: Tests Linux with coverage
on: [push]
jobs:
build:
name: build an tests with coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y python3-pip lcov g++
pip install --upgrade meson ninja
- name: Configure with meson
run: meson -Db_coverage=true -Dwith_tests=true . build
- name: Build (meson)
run: ninja -C build
- name: Run tests (meson)
run: ninja test -C build
- name: Generate Coverage report
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --remove coverage.info '*/catch.hpp' --output-file coverage.info
lcov --list coverage.info