Skip to content

Commit

Permalink
CI: Restore codecov upload (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston authored Jan 23, 2025
1 parent 4310f3b commit 9f7b1cc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ jobs:
uname -a
sudo -E apt-get update
sudo -E apt-get autopurge -y needrestart
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install make doxygen python3-pip ccache valgrind ${{ matrix.ci.packages }}
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install make doxygen lcov python3-pip ccache valgrind ${{ matrix.ci.packages }}
python3 -m pip install --disable-pip-version-check --user cmake==${{ matrix.ci.cmake }}
echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -284,12 +284,19 @@ jobs:
path: build/Testing/Temporary/MemoryChecker.**.log
retention-days: 1

- name: Upload Coverage to Codecov
- name: Generate coverage report
if: matrix.ci.build_type == 'Coverage'
run: |
curl -o codecov.sh https://codecov.io/bash
bash codecov.sh
shell: bash
cd build
lcov --ignore-errors=gcov,negative --capture --directory CMakeFiles --output-file coverage.info
- name: Upload Coverage to Codecov
if: ${{ matrix.ci.build_type == 'Coverage' && !cancelled() }}
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
files: build/coverage.info
token: ${{ secrets.CODECOV_TOKEN }}

windows-mingw:
name: 'Windows (mingw-w64, x86_64, windows-2019)'
Expand Down

0 comments on commit 9f7b1cc

Please sign in to comment.