Skip to content

Commit

Permalink
ci(coverage): upload coverage with token
Browse files Browse the repository at this point in the history
tokenless upload seems break for codecov-action v3, no fix upstream.
Upgrading to v4 with a upload token. Ref codecov/codecov-action#1359
  • Loading branch information
aceforeverd committed Apr 15, 2024
1 parent 737f294 commit 27a9294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ jobs:
path: build

- name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: build/coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage-cpp
fail_ci_if_error: true
verbose: true
3 changes: 2 additions & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,10 @@ jobs:
path: go

- name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: go/coverage.out,python/openmldb_sdk/tests/coverage.xml,python/openmldb_tool/tests/coverage.xml,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
name: coverage-sdk
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

0 comments on commit 27a9294

Please sign in to comment.