Implement a file reader class. #228
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: 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 |