CSV Parser 4.0.0 - Benchmarks, DataFrame gets parallelized, MSVC AV2 Fixes #146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Coverage | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y lcov | |
| - name: Configure CMake with coverage instrumentation | |
| run: > | |
| cmake -B build | |
| -DCMAKE_BUILD_TYPE=Debug | |
| -DENABLE_CODE_COVERAGE=ON | |
| -DCMAKE_CXX_COMPILER=g++ | |
| -DCMAKE_C_COMPILER=gcc | |
| -DCSV_CXX_STANDARD=17 | |
| -S ${{ github.workspace }} | |
| - name: Build | |
| run: cmake --build build --config Debug | |
| - name: Run tests | |
| working-directory: build | |
| run: ctest --build-config Debug --output-on-failure | |
| - name: Capture coverage data | |
| run: | | |
| lcov --capture \ | |
| --directory build \ | |
| --output-file coverage.info \ | |
| --ignore-errors mismatch,source,empty,unused,negative \ | |
| --rc lcov_branch_coverage=1 | |
| # Strip system headers, external deps, Catch2, and test files | |
| lcov --remove coverage.info \ | |
| '/usr/*' \ | |
| '*/external/*' \ | |
| '*/catch2/*' \ | |
| '*/Catch2/*' \ | |
| '*/tests/*' \ | |
| --output-file coverage.info \ | |
| --ignore-errors empty,unused \ | |
| --rc lcov_branch_coverage=1 | |
| lcov --list coverage.info --ignore-errors empty,unused --rc lcov_branch_coverage=1 | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: coverage.info | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| override_commit: ${{ github.event.pull_request.head.sha || github.sha }} | |
| override_pr: ${{ github.event.pull_request.number }} |