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 c236f11 commit d7640b3
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/downstream-ci-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ name: downstream-ci-hpc
earthkit-data:
required: false
type: string
earthkit-plots:
required: false
type: string
earthkit-geo:
required: false
type: string
Expand Down Expand Up @@ -83,6 +86,7 @@ jobs:
atlas: ${{ steps.setup.outputs.atlas }}
cfgrib: ${{ steps.setup.outputs.cfgrib }}
earthkit-data: ${{ steps.setup.outputs.earthkit-data }}
earthkit-plots: ${{ steps.setup.outputs.earthkit-plots }}
earthkit-geo: ${{ steps.setup.outputs.earthkit-geo }}
earthkit-meteo: ${{ steps.setup.outputs.earthkit-meteo }}
earthkit-regrid: ${{ steps.setup.outputs.earthkit-regrid }}
Expand Down Expand Up @@ -136,6 +140,13 @@ jobs:
develop_branch: develop
input: ${{ inputs.earthkit-data }}
optional_matrix: null
ecmwf/earthkit-plots:
path: .github/ci-hpc-config.yml
python: true
master_branch: main
develop_branch: develop
input: ${{ inputs.earthkit-plots }}
optional_matrix: null
ecmwf/earthkit-geo:
path: .github/ci-hpc-config.yml
python: true
Expand Down Expand Up @@ -426,6 +437,31 @@ jobs:
${{ inputs.eccodes-python }}
${{ inputs.pyodc }}
python_requirements: tests/downstream-ci-requirements.txt
earthkit-plots:
name: earthkit-plots
needs:
- setup
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.earthkit-plots && (inputs.earthkit-plots) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.earthkit-plots) }}
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: ''
python_dependencies: ''
python_requirements: tests/downstream-ci-requirements.txt
earthkit-geo:
name: earthkit-geo
needs:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/downstream-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
atlas: ${{ steps.setup.outputs.atlas }}
cfgrib: ${{ steps.setup.outputs.cfgrib }}
earthkit-data: ${{ steps.setup.outputs.earthkit-data }}
earthkit-plots: ${{ steps.setup.outputs.earthkit-plots }}
earthkit-geo: ${{ steps.setup.outputs.earthkit-geo }}
earthkit-meteo: ${{ steps.setup.outputs.earthkit-meteo }}
earthkit-regrid: ${{ steps.setup.outputs.earthkit-regrid }}
Expand Down Expand Up @@ -157,6 +158,13 @@ jobs:
develop_branch: develop
input: ${{ inputs.earthkit-data }}
optional_matrix: null
ecmwf/earthkit-plots:
path: ''
python: true
master_branch: main
develop_branch: develop
input: ${{ inputs.earthkit-plots }}
optional_matrix: null
ecmwf/earthkit-geo:
path: ''
python: true
Expand Down Expand Up @@ -582,6 +590,27 @@ jobs:
python -m pytest -v -m 'notebook'
python -m pytest --forked -vv -m 'no_cache_init'
python -m coverage report
earthkit-plots:
name: earthkit-plots
needs:
- setup
- python-qa
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.earthkit-plots && (inputs.earthkit-plots) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.earthkit-plots) }}
env:
DEP_TREE: ${{ needs.setup.outputs.dep_tree }}
runs-on: ${{ matrix.labels }}
steps:
- uses: ecmwf-actions/reusable-workflows/ci-python@v2
with:
repository: ${{ matrix.owner_repo_ref }}
checkout: true
python_dependencies: ''
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-geo:
name: earthkit-geo
needs:
Expand Down

0 comments on commit d7640b3

Please sign in to comment.