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 6cdfdd4 commit 0036cfd
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/downstream-ci-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ name: downstream-ci-hpc
thermofeel:
required: false
type: string
troika:
required: false
type: string
skip_matrix_jobs:
description: List of matrix jobs to be skipped.
required: false
Expand Down Expand Up @@ -99,6 +102,7 @@ jobs:
pyodc: ${{ steps.setup.outputs.pyodc }}
skinnywms: ${{ steps.setup.outputs.skinnywms }}
thermofeel: ${{ steps.setup.outputs.thermofeel }}
troika: ${{ steps.setup.outputs.troika }}
dep_tree: ${{ steps.setup.outputs.build_package_hpc_dep_tree }}
steps:
- name: checkout reusable wfs repo
Expand Down Expand Up @@ -265,6 +269,13 @@ jobs:
develop_branch: develop
input: ${{ inputs.thermofeel }}
optional_matrix: null
ecmwf/troika:
path: .github/ci-hpc-config.yml
python: true
master_branch: master
develop_branch: develop
input: ${{ inputs.troika }}
optional_matrix: null
SKIP_MATRIX_JOBS: ${{ inputs.skip_matrix_jobs }}
PYTHON_VERSIONS: |+
- '3.10'
Expand Down Expand Up @@ -916,3 +927,27 @@ jobs:
build_config: ${{ matrix.config_path }}
dependencies: ''
python_dependencies: ''
troika:
name: troika
needs:
- setup
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.troika && (inputs.troika) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.troika) }}
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: ''
31 changes: 31 additions & 0 deletions .github/workflows/downstream-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ name: downstream-ci
thermofeel:
required: false
type: string
troika:
required: false
type: string
skip_matrix_jobs:
description: List of matrix jobs to be skipped.
required: false
Expand Down Expand Up @@ -115,6 +118,7 @@ jobs:
pyodc: ${{ steps.setup.outputs.pyodc }}
skinnywms: ${{ steps.setup.outputs.skinnywms }}
thermofeel: ${{ steps.setup.outputs.thermofeel }}
troika: ${{ steps.setup.outputs.troika }}
dep_tree: ${{ steps.setup.outputs.build_package_dep_tree }}
trigger_repo: ${{ steps.setup.outputs.trigger_repo }}
py_codecov_platform: ${{ steps.setup.outputs.py_codecov_platform }}
Expand Down Expand Up @@ -283,6 +287,13 @@ jobs:
develop_branch: develop
input: ${{ inputs.thermofeel }}
optional_matrix: null
ecmwf/troika:
path: ''
python: true
master_branch: master
develop_branch: develop
input: ${{ inputs.troika }}
optional_matrix: null
SKIP_MATRIX_JOBS: ${{ inputs.skip_matrix_jobs }}
PYTHON_VERSIONS: |+
- '3.10'
Expand Down Expand Up @@ -1039,3 +1050,23 @@ jobs:
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 }}
troika:
name: troika
needs:
- setup
- python-qa
if: ${{ (always() && !cancelled()) && contains(join(needs.*.result, ','), 'success') && needs.setup.outputs.troika && (inputs.troika) }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.troika) }}
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 }}

0 comments on commit 0036cfd

Please sign in to comment.