From 1ce5852b315403fc906ee961434b39d7cf4eadd8 Mon Sep 17 00:00:00 2001 From: Roman Khristoforov Date: Mon, 6 Nov 2023 18:20:42 +0200 Subject: [PATCH] Github actions codecov add ONNX flag (#2233) ### Changes ### Reason for changes ### Related tickets 117723 ### Tests --- .github/workflows/post_pr_merge.yml | 2 ++ .github/workflows/precommit.yml | 2 ++ .github/workflows/upload_coverage_for_develop.yml | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/post_pr_merge.yml b/.github/workflows/post_pr_merge.yml index 69b7d9c5293..31712fecfa6 100644 --- a/.github/workflows/post_pr_merge.yml +++ b/.github/workflows/post_pr_merge.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index 1652fcb2eb3..a238ed76019 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -33,6 +33,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} name: coverage_common + flags: COMMON onnx: runs-on: ubuntu-20.04 steps: @@ -58,4 +59,5 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} name: coverage_onnx + flags: ONNX diff --git a/.github/workflows/upload_coverage_for_develop.yml b/.github/workflows/upload_coverage_for_develop.yml index 0bc7e7e4159..952f57ea828 100644 --- a/.github/workflows/upload_coverage_for_develop.yml +++ b/.github/workflows/upload_coverage_for_develop.yml @@ -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 @@ -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 }}"