Skip to content

Commit c4c14be

Browse files
authored
Merge pull request #77 from ecmwf/feature/downstream-ci
Enable downstream CI
2 parents 29eac16 + e084f9f commit c4c14be

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

Diff for: .github/ci-config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dependencies: |
2+
ecmwf/ecbuild
3+
MathisRosenhauer/libaec@master
4+
ecmwf/eccodes
5+
dependency_branch: develop
6+
parallelism_factor: 8
7+
self_build: false

Diff for: .github/ci-hpc-config.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
build:
2+
python: '3.10'
3+
modules:
4+
- ninja
5+
dependencies:
6+
- ecmwf/ecbuild@develop
7+
- ecmwf/eccodes@develop
8+
env:
9+
- ECCODES_SAMPLES_PATH=$ECCODES_DIR/share/eccodes/samples
10+
- ECCODES_DEFINITION_PATH=$ECCODES_DIR/share/eccodes/definitions
11+
parallel: 64

Diff for: .github/workflows/ci.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,20 @@ on:
2020
types: [labeled]
2121

2222
jobs:
23-
# Build and test this packcage on HPC
24-
ci-hpc:
25-
name: ci-hpc
23+
# Run CI including downstream packages on self-hosted runners
24+
downstream-ci:
25+
name: downstream-ci
2626
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
27-
uses: ./.github/workflows/reusable-ci-hpc.yml
27+
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci.yml@main
2828
with:
2929
eccodes-python: ecmwf/eccodes-python@${{ github.event.pull_request.head.sha || github.sha }}
30-
secrets: inherit
30+
secrets: inherit
31+
32+
# Build downstream packages on HPC
33+
downstream-ci-hpc:
34+
name: downstream-ci-hpc
35+
if: ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }}
36+
uses: ecmwf-actions/downstream-ci/.github/workflows/downstream-ci-hpc.yml@main
37+
with:
38+
eccodes-python: ecmwf/eccodes-python@${{ github.event.pull_request.head.sha || github.sha }}
39+
secrets: inherit

0 commit comments

Comments
 (0)