Skip to content

Implement a file reader class. #228

Implement a file reader class.

Implement a file reader class. #228

Workflow file for this run

name: Coverage
on:
schedule:
# trigger the workflow on the every 2 am UTC
- cron: '00 02 * * *'
pull_request_target:
branches:
- master
push:
branches:
- master
permissions: write-all
jobs:
coverage:
runs-on: ubuntu-latest
environment:
name: codecov
deployment: false
container:
image: ghcr.io/yanzhaow/centipede_env:latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
submodules: 'true'
ref: '${{ github.event.pull_request.head.sha }}'
- name: pre-build
uses: './.github/actions/pre_build_config'
- name: build-test-submit
run: |
dnf install -y gcovr lcov
cmake --workflow --preset coverage
lcov --capture --directory build --exclude '*/test/*' --exclude '*/.conan2/*' --exclude '/usr/*' --output-file coverage.info
lcov --list coverage.info
shell: bash
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.info
disable_search: true
name: codecov-test