Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2
3 on:
4 # Trigger the workflow on push to master or develop, except tag creation
5 push:
6 branches:
7 - 'master'
8 - 'develop'
9 tags-ignore:
10 - '**'
11
12 # Trigger the workflow on pull request
13 pull_request:
14
15 # Trigger the workflow manually
16 workflow_dispatch:
17
18 # Trigger after public PR approved for CI
19 pull_request_target:
20 types: [labeled]
21
22 jobs:
23 # Run CI including downstream packages on self-hosted runners
24 downstream-ci:
25 name: downstream-ci
26 if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
27 uses: ecmwf/downstream-ci/.github/workflows/downstream-ci.yml@main
28 with:
29 findlibs: ecmwf/findlibs@${{ github.event.pull_request.head.sha || github.sha }}
30 codecov_upload: true
31 python_qa: true
32 secrets: inherit
33
34
35 # Build downstream packages on HPC
36 downstream-ci-hpc:
37 name: downstream-ci-hpc
38 if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
39 uses: ecmwf/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
40 with:
41 findlibs: ecmwf/findlibs@${{ github.event.pull_request.head.sha || github.sha }}
42 secrets: inherit