cpp-ipc/.github/workflows/codecov.yml
木头云 78bbb05322 feat(ci): exclude 3rdparty folder from codecov coverage
- Add codecov.yml configuration to exclude 3rdparty, test, and demo directories
- Update GitHub Actions workflow with exclude parameter in codecov-action
- Ensures only project source code is included in coverage metrics

This provides double protection:
1. codecov.yml filters on CodeCov service side
2. workflow exclude filters during upload
2025-12-12 07:04:31 +00:00

38 lines
713 B
YAML

name: Upload CodeCov Report
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIPC_BUILD_TESTS=ON -DLIBIPC_CODECOV=ON .
- name: Build
run: make -j
- name: Test
env:
LD_LIBRARY_PATH: ./bin
run: ./bin/test-ipc
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
verbose: true
exclude: |
3rdparty/**
test/**
demo/**
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}