forked from coecms/cms-conda-singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (24 loc) · 892 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Test conda env
on:
workflow_call:
inputs:
environment:
required: true
type: string
jobs:
test:
name: Test environment
runs-on: ubuntu-latest
steps:
- name: Test environment
uses: appleboy/[email protected]
with:
host: gadi.nci.org.au
username: ${{secrets.GADI_USER}}
key: ${{secrets.DEPLOY_KEY}}
script: |
export SCRIPT_DIR=${{secrets.GADI_REPO_PATH}}/scripts
eval $( grep ADMIN_DIR $SCRIPT_DIR/install_config.sh )
eval $( grep JOB_LOG_DIR $SCRIPT_DIR/install_config.sh )
cd $JOB_LOG_DIR
qsub -N test_${{ inputs.environment }} -lncpus=4,mem=20GB,walltime=0:20:00,jobfs=50GB,storage=gdata/xp65+scratch/iq82 -v SCRIPT_DIR,CONDA_ENVIRONMENT=${{ inputs.environment }} -P iq82 -Wblock=true -Wumask=037 "${SCRIPT_DIR}"/test.sh