Skip to content

Address review comments: flaky tests, TIMESTORM_NO_UNICODE, weak asse… #6

Address review comments: flaky tests, TIMESTORM_NO_UNICODE, weak asse…

Address review comments: flaky tests, TIMESTORM_NO_UNICODE, weak asse… #6

Workflow file for this run

name: Tests
on:
push:
branches: ["**"]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y lcov
- name: Configure
run: >
cmake -B build
-DTIMESTORM_BUILD_TESTS=ON
-DTIMESTORM_ENABLE_COVERAGE=ON
-DCMAKE_BUILD_TYPE=Debug
- name: Build
run: cmake --build build --parallel
- name: Run tests
run: ctest --test-dir build --output-on-failure
- name: Generate coverage report
run: |
lcov --capture \
--directory build \
--output-file coverage.info \
--ignore-errors mismatch
lcov --remove coverage.info \
'/usr/*' \
'*/build/_deps/*' \
'*/tests/*' \
--output-file coverage.info \
--ignore-errors unused
lcov --list coverage.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage.info
fail_ci_if_error: false