Skip to content

Commit

Permalink
Build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 2, 2024
1 parent fd9bfa9 commit 4bcca8b
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/downstream-ci-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ name: downstream-ci-hpc
cfgrib:
required: false
type: string
earthkit:
required: false
type: string
earthkit-data:
required: false
type: string
Expand Down Expand Up @@ -82,6 +85,7 @@ jobs:
outputs:
atlas: ${{ steps.setup.outputs.atlas }}
cfgrib: ${{ steps.setup.outputs.cfgrib }}
earthkit: ${{ steps.setup.outputs.earthkit }}
earthkit-data: ${{ steps.setup.outputs.earthkit-data }}
earthkit-geo: ${{ steps.setup.outputs.earthkit-geo }}
earthkit-meteo: ${{ steps.setup.outputs.earthkit-meteo }}
Expand Down Expand Up @@ -129,6 +133,13 @@ jobs:
develop_branch: master
input: ${{ inputs.cfgrib }}
optional_matrix: null
ecmwf/earthkit:
path: .github/ci-hpc-config.yml
python: true
master_branch: main
develop_branch: develop
input: ${{ inputs.earthkit }}
optional_matrix: null
ecmwf/earthkit-data:
path: .github/ci-hpc-config.yml
python: true
Expand Down Expand Up @@ -385,6 +396,55 @@ jobs:
dependencies: ${{ inputs.eccodes }}
python_dependencies: ${{ inputs.eccodes-python }}
python_requirements: ci/requirements-tests.in
earthkit:
name: earthkit
needs:
- earthkit-data
- cfgrib
- multiurl
- pdbufr
- eccodes-python
- eccodes
- pyodc
- odc
- eckit
- earthkit-geo
- earthkit-meteo
- earthkit-regrid
- setup
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.earthkit && (inputs.earthkit-data || inputs.cfgrib || inputs.multiurl || inputs.pdbufr || inputs.eccodes-python || inputs.eccodes || inputs.pyodc || inputs.odc || inputs.eckit || inputs.earthkit-geo || inputs.earthkit-meteo || inputs.earthkit-regrid || inputs.earthkit) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.earthkit) }}
env:
DEP_TREE: ${{ needs.setup.outputs.dep_tree }}
runs-on:
- self-hosted
- linux
- hpc
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc@v2
with:
github_user: ${{ secrets.BUILD_PACKAGE_HPC_GITHUB_USER }}
github_token: ${{ secrets.GH_REPO_READ_TOKEN }}
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
repository: ${{ matrix.owner_repo_ref }}
build_config: ${{ matrix.config_path }}
dependencies: |-
${{ inputs.eccodes }}
${{ inputs.odc }}
${{ inputs.eckit }}
python_dependencies: |-
${{ inputs.earthkit-data }}
${{ inputs.cfgrib }}
${{ inputs.multiurl }}
${{ inputs.pdbufr }}
${{ inputs.eccodes-python }}
${{ inputs.pyodc }}
${{ inputs.earthkit-geo }}
${{ inputs.earthkit-meteo }}
${{ inputs.earthkit-regrid }}
python_requirements: tests/downstream-ci-requirements.txt
earthkit-data:
name: earthkit-data
needs:
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/downstream-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ name: downstream-ci
cfgrib:
required: false
type: string
earthkit:
required: false
type: string
earthkit-data:
required: false
type: string
Expand Down Expand Up @@ -98,6 +101,7 @@ jobs:
outputs:
atlas: ${{ steps.setup.outputs.atlas }}
cfgrib: ${{ steps.setup.outputs.cfgrib }}
earthkit: ${{ steps.setup.outputs.earthkit }}
earthkit-data: ${{ steps.setup.outputs.earthkit-data }}
earthkit-geo: ${{ steps.setup.outputs.earthkit-geo }}
earthkit-meteo: ${{ steps.setup.outputs.earthkit-meteo }}
Expand Down Expand Up @@ -147,6 +151,13 @@ jobs:
develop_branch: master
input: ${{ inputs.cfgrib }}
optional_matrix: null
ecmwf/earthkit:
path: ''
python: true
master_branch: main
develop_branch: develop
input: ${{ inputs.earthkit }}
optional_matrix: null
ecmwf/earthkit-data:
path: .github/ci-config.yml
python: true
Expand Down Expand Up @@ -529,6 +540,59 @@ jobs:
codecov_upload: ${{ needs.setup.outputs.trigger_repo == github.job && inputs.codecov_upload && needs.setup.outputs.py_codecov_platform == matrix.name }}
codecov_token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
requirements_path: ci/requirements-tests.in
earthkit:
name: earthkit
needs:
- earthkit-data
- cfgrib
- multiurl
- pdbufr
- eccodes-python
- eccodes
- pyodc
- odc
- eckit
- earthkit-geo
- earthkit-meteo
- earthkit-regrid
- setup
- python-qa
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.earthkit && (inputs.earthkit-data || inputs.cfgrib || inputs.multiurl || inputs.pdbufr || inputs.eccodes-python || inputs.eccodes || inputs.pyodc || inputs.odc || inputs.eckit || inputs.earthkit-geo || inputs.earthkit-meteo || inputs.earthkit-regrid || inputs.earthkit) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.earthkit) }}
env:
DEP_TREE: ${{ needs.setup.outputs.dep_tree }}
runs-on: ${{ matrix.labels }}
steps:
- name: Build dependencies
id: build-deps
uses: ecmwf-actions/reusable-workflows/build-package-with-config@v2
with:
repository: ${{ matrix.owner_repo_ref }}
codecov_upload: false
build_package_inputs: 'repository: ${{ matrix.owner_repo_ref }}'
build_config: ${{ matrix.config_path }}
build_dependencies: |-
${{ inputs.eccodes }}
${{ inputs.odc }}
${{ inputs.eckit }}
- uses: ecmwf-actions/reusable-workflows/ci-python@v2
with:
lib_path: ${{ steps.build-deps.outputs.lib_path }}
python_dependencies: |-
${{ inputs.earthkit-data }}
${{ inputs.cfgrib }}
${{ inputs.multiurl }}
${{ inputs.pdbufr }}
${{ inputs.eccodes-python }}
${{ inputs.pyodc }}
${{ inputs.earthkit-geo }}
${{ inputs.earthkit-meteo }}
${{ inputs.earthkit-regrid }}
codecov_upload: ${{ needs.setup.outputs.trigger_repo == github.job && inputs.codecov_upload && needs.setup.outputs.py_codecov_platform == matrix.name }}
codecov_token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
requirements_path: tests/downstream-ci-requirements.txt
earthkit-data:
name: earthkit-data
needs:
Expand Down

0 comments on commit 4bcca8b

Please sign in to comment.