Add code coverage CI job

This commit is contained in:
Dusan Figala 2023-03-31 13:50:07 +02:00
parent 5c3840ccbf
commit fa26ab1077
2 changed files with 14 additions and 0 deletions

View File

@ -73,3 +73,12 @@ jobs:
repository: private-downstream-ci
event_type: downstream-ci-hpc
payload: '{"eccodes": "ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}"}'
codecov:
name: code-coverage
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
uses: ./.github/workflows/reusable-ci.yml
with:
eccodes: ecmwf/eccodes@${{ github.event.pull_request.head.sha || github.sha }}
codecov: true
secrets: inherit

View File

@ -6,6 +6,10 @@ on:
eccodes:
required: false
type: string
codecov:
required: false
type: boolean
default: false
jobs:
ci:
@ -14,6 +18,7 @@ jobs:
with:
repository: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
name_prefix: eccodes-
codecov_upload: ${{ inputs.codecov }}
build_package_inputs: |
repository: ${{ inputs.eccodes || 'ecmwf/eccodes@develop' }}
self_coverage: true