Skip to content

Commit

Permalink
Trying to fix coverage reporting (#532)
Browse files Browse the repository at this point in the history
* Trying to fix coverage reporting

* More CI filtering

* More fixes

* More fixes

* More fixes

* More fixes maybe

* More fixes
  • Loading branch information
jatinchowdhury18 authored Apr 29, 2024
1 parent 99ddbea commit d4372ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:
cmake_args: "-DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug"
run_coverage: true
build_type: "Debug"
- name: "Coverage"
os: macos-latest
cmake_args: "-DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug"
# - name: "Coverage"
# os: macos-latest
# cmake_args: "-DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug"
# run_coverage: true (this is breaking for some reason @TODO)
build_type: "Debug"
# build_type: "Debug"
- name: "Live GUI Test"
os: ubuntu-latest
tests: "live_gui_test"
Expand All @@ -60,6 +60,8 @@ jobs:
# so we don't break GitHub Actions concurrency limit
- name: "Test"
os: macos-latest
- name: "Coverage"
os: macos-latest
- name: "Coverage"
os: windows-2022

Expand Down Expand Up @@ -134,7 +136,7 @@ jobs:
shell: bash
run: |
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' '/Applications/Xcode*' '*JUCE/modules*' '*foleys_*' '*chowdsp_utils/tests*' '*third_party*' '*chowdsp_foleys*' '*chowdsp_core/JUCEHelpers*' --output-file coverage.info
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' '/Applications/Xcode*' '*chowdsp_utils/build/*' '*JUCE/modules*' '*foleys_*' '*chowdsp_utils/tests*' '*third_party*' '*chowdsp_foleys*' '*chowdsp_core/JUCEHelpers*' --output-file coverage.info
- name: Report Coverage Data
if: matrix.run_coverage
Expand All @@ -146,7 +148,9 @@ jobs:
if: matrix.run_coverage
uses: codecov/codecov-action@v4
with:
working-directory: ${{env.WORK_DIR}}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{env.WORK_DIR}}/coverage.info
codecov_yml_path: ${{env.WORK_DIR}}/codecov.yml
verbose: true
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ ignore:
- "modules/gui/chowdsp_foleys"
- "modules/gui/chowdsp_gui/Presets"
- "**/third_party/**"
- "build/**"
- "tests/**"

0 comments on commit d4372ed

Please sign in to comment.