Skip to content

Commit

Permalink
Add python requirements path for HPC wf
Browse files Browse the repository at this point in the history
  • Loading branch information
figi44 committed Apr 24, 2024
1 parent 4812c09 commit b72a9ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/downstream-ci-hpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ jobs:
build_config: ${{ matrix.config_path }}
dependencies: ${{ inputs.eccodes }}
python_dependencies: ${{ inputs.eccodes-python }}
python_requirements: ci/requirements-tests.in
earthkit-data:
name: earthkit-data
needs:
Expand Down Expand Up @@ -402,6 +403,7 @@ jobs:
${{ inputs.pdbufr }}
${{ inputs.eccodes-python }}
${{ inputs.pyodc }}
python_requirements: tests/downstream-ci-requirements.txt
earthkit-meteo:
name: earthkit-meteo
needs:
Expand All @@ -426,6 +428,7 @@ jobs:
build_config: ${{ matrix.config_path }}
dependencies: ''
python_dependencies: ''
python_requirements: tests/downstream-ci-requirements.txt
eccodes:
name: eccodes
needs:
Expand Down Expand Up @@ -738,6 +741,7 @@ jobs:
build_config: ${{ matrix.config_path }}
dependencies: ${{ inputs.eccodes }}
python_dependencies: ${{ inputs.eccodes-python }}
python_requirements: tests/downstream-ci-requirements.txt
plume:
name: plume
needs:
Expand Down
31 changes: 15 additions & 16 deletions generate-workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,22 +295,21 @@ def generate_package_jobs(self, dep_tree: dict):
"linux",
"hpc",
]
steps.append(
{
"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": "\n".join(cmake_deps),
"python_dependencies": "\n".join(python_deps),
},
}
)
s = {
"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": "\n".join(cmake_deps),
"python_dependencies": "\n".join(python_deps),
},
}
if pkg_conf.get("requirements_path"):
s["with"]["python_requirements"] = pkg_conf.get("requirements_path")
steps.append(s)
self.add_job(Job(package, needs, condition, strategy, env, runs_on, steps))

def generate_setup_job(self, dep_tree: dict, wf_config: dict):
Expand Down

0 comments on commit b72a9ac

Please sign in to comment.