-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix uploading of code coverage data (#5298)
* Do not upload codecoverage data from boilerplate Signed-off-by: Eduardo Apolinario <[email protected]> * Use correct token to upload code coverage data Signed-off-by: Eduardo Apolinario <[email protected]> * Pipe in CODECOV_TOKEN as an input secret Signed-off-by: Eduardo Apolinario <[email protected]> * Actually pipe the secret in Signed-off-by: Eduardo Apolinario <[email protected]> * Pipe codecov token in flyteidl tests too --------- Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
- Loading branch information
1 parent
f32132b
commit 6ebcb86
Showing
4 changed files
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
required: true | ||
type: string | ||
secrets: | ||
FLYTE_BOT_PAT: | ||
CODECOV_TOKEN: | ||
required: true | ||
jobs: | ||
tests: | ||
|
@@ -27,15 +27,11 @@ jobs: | |
with: | ||
go-version: ${{ inputs.go-version }} | ||
- name: Unit Tests | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
run: make install && make test_unit_codecov | ||
# TODO(monorepo): Figure out how to do code coverage aggregation | ||
- name: Push CodeCov | ||
uses: codecov/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
file: coverage.txt | ||
flags: unittests | ||
flags: unittests-${{ inputs.component }} | ||
fail_ci_if_error: false | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters