Skip to content

Commit

Permalink
github: Use Codecov CLI to generate and upload reports
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Sep 24, 2023
1 parent d39d690 commit 69943f8
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,18 @@ jobs:
pwd
cd ../plibsys-build
ctest
- name: lcov
- name: coverage-install
if: ${{ success() && matrix.os == 'ubuntu-latest' && matrix.CC == 'gcc' }}
run: |
pwd
sudo apt-get update
sudo apt-get install lcov
cd ../plibsys-build
lcov -c --directory . --no-external --base-directory ../plibsys --output-file ./coverage.info
- name: coverage
pip install codecov-cli
- name: coverage-run
if: ${{ success() && matrix.os == 'ubuntu-latest' && matrix.CC == 'gcc' }}
uses: codecov/codecov-action@v4-beta
with:
token: ${{ secrets.CODECOV_TOKEN }}
working-directory: ../plibsys-build
root_dir: .
gcov: false
run: |
pwd
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }}
lcov -c --directory ../plibsys-build --no-external --base-directory . --output-file ../plibsys-build/coverage.info
codecovcli -v create-report -t ${{ secrets.CODECOV_TOKEN }}
codecovcli -v do-upload --dir ../plibsys-build -t ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 69943f8

Please sign in to comment.