Skip to content

removing version.py and update cd #13

removing version.py and update cd

removing version.py and update cd #13

Workflow file for this run

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- 'unstable-[0-9]+.[0-9]+.[0-9]+'
jobs:
install_module:
runs-on: [hpc]
steps:
- uses: ecmwf-actions/reusable-workflows/ci-hpc-generic@v2
with:
troika_user: ${{ secrets.HPC_CI_SSH_USER }}
template: |
# Declare an array to store the module versions
python3_versions=("3.10.10-01" "3.11.8-01")
HAT_VERSION=${{ github.ref_name }}
PREFIX=/usr/local/apps/hat/${HAT_VERSION}
rm -rf $PREFIX
mkdir -p $PREFIX
# Loop through the module versions
for version in "${python3_versions[@]}"
do
# Load the module for the current version
module load python3/$version
PYTHONUSERBASE=$PREFIX pip3 install --user git+https://github.com/ecmwf/hat.git@${HAT_VERSION}
module unload python3
done
cat > $PREFIX/README.txt << EOF
-- [hat] ($HAT_VERSION) [$HAT_VERSION]
EOF
software-sync -s local -p hat
module load modulemgr
modulemgr -m all sync hat
modulemgr -m all tag hat 1.2.0 default
sbatch_options: |
#SBATCH --job-name=cd_hat
#SBATCH --time=00:10:00
#SBATCH --qos=deploy