Skip to content

Commit

Permalink
Github actions codecov add ONNX flag (openvinotoolkit#2233)
Browse files Browse the repository at this point in the history
### Changes

<!--- What was changed (briefly), how to reproduce (if applicable), what
the reviewers should focus on -->

### Reason for changes

<!--- Why should the change be applied -->

### Related tickets

117723

### Tests

<!--- How was the correctness of changes tested and whether new tests
were added -->
  • Loading branch information
ksilligan authored Nov 6, 2023
1 parent 18c4471 commit 1ce5852
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/post_pr_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
coverage_artifact_name_in_pr: coverage_common
coverage_flags: COMMON
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
upload-coverage-onnx:
Expand All @@ -33,5 +34,6 @@ jobs:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
coverage_artifact_name_in_pr: coverage_onnx
coverage_flags: ONNX
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage_common
flags: COMMON
onnx:
runs-on: ubuntu-20.04
steps:
Expand All @@ -58,4 +59,5 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage_onnx
flags: ONNX

5 changes: 4 additions & 1 deletion .github/workflows/upload_coverage_for_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
coverage_artifact_name_in_pr:
required: true
type: string
coverage_flags:
required: true
type: string
secrets:
CODECOV_TOKEN:
required: true
Expand All @@ -37,4 +40,4 @@ jobs:
# github.event.pull_request.merge_commit_sha is the fresh commit in the develop,
# provided that github.event.pull_request.merged == true
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -C ${{ inputs.merge_commit_sha }} -B develop -n "${{ inputs.coverage_artifact_name_in_pr }}"
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -F ${{ inputs.coverage_flags }} -C ${{ inputs.merge_commit_sha }} -B develop -n "${{ inputs.coverage_artifact_name_in_pr }}"

0 comments on commit 1ce5852

Please sign in to comment.