You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ci): Add GitHub Actions CI workflow with code coverage support
Add continuous integration infrastructure for automated testing and coverage:
GitHub Actions workflow (.github/workflows/ci.yml):
- Triggers on push and pull request to main branch
- Concurrency control to cancel duplicate runs
- Caches CMake dependencies and ccache for faster builds
- Installs build dependencies (cmake, libeigen3-dev, lcov)
- Builds with coverage enabled using GCC
- Runs test suite and generates lcov coverage report
- Uploads coverage to Codecov integration
- Saves coverage HTML report and build logs as artifacts
CMake coverage support (CMakeLists.txt):
- Add ENABLE_COVERAGE option for coverage instrumentation
- Configure --coverage flags for GCC/Clang compilers
- Add coverage custom target to run tests and generate HTML report
- Add coverage-clean target to remove coverage data
Makefile convenience targets:
- coverage-build: Configure and build with coverage enabled
- coverage: Full coverage workflow (build, test, generate report)
- coverage-clean: Remove coverage artifacts
0 commit comments