From f5cd4a13f2b2f7e985d1b7459a656ecedd3a00fd Mon Sep 17 00:00:00 2001 From: Pepijn Noltes Date: Sun, 2 Jun 2024 14:25:58 +0200 Subject: [PATCH] gh-747: Configure codecov action with upload token Also updates to codecov action v4.4.1 using the commit hash. --- .github/workflows/coverage.yml | 7 +++++-- codecov.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 730ed750a..19665f19b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,7 +19,7 @@ jobs: - name: Install conan and lcov run: | sudo apt-get install -yq --no-install-recommends lcov - sudo pip install conan==1.62.0 + sudo pip install conan==1.62.0 coverage - name: Setup Conan Profile run: | conan profile new default --detect @@ -67,7 +67,10 @@ jobs: source deactivate_conanrun.sh lcx="lcov --output-file=coverage.info " && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx - name: Codecov - uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c #v4.4.1 + if: github.repository_owner == 'apache' with: files: build/coverage.info + disable_search: true name: codecov-celix + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml index 1525d2400..00038b5ff 100644 --- a/codecov.yml +++ b/codecov.yml @@ -18,4 +18,4 @@ coverage: precision: 2 round: down - range: "68...100" \ No newline at end of file + range: "68...100"