Skip to content

Add self hosted runner to get GPU testing on CSD3 #15

Add self hosted runner to get GPU testing on CSD3

Add self hosted runner to get GPU testing on CSD3 #15

Workflow file for this run

name: CSD3 tests
on:
#push:
# branches:
# - main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
DATADEPS_ALWAYS_ACCEPT: true
JULIA_VERSION: "1.9.3"
JULIA_MINOR_VERSION: "1.9"
RDS_HOME: "/home/js2430/rds/hpc-work/OceanBioME-runner/_work"
jobs:
test:
name: Deploy CSD3 tests
runs-on: self-hosted
steps:
- name: Download Julia
run: "wget -N -P $RDS_HOME/_temp https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_MINOR_VERSION/julia-$JULIA_VERSION-linux-x86_64.tar.gz;
tar xf $RDS_HOME/_temp/julia-$JULIA_VERSION-linux-x86_64.tar.gz -C $RDS_HOME/_temp"
- name: Clean repo
run: "git checkout main; git pull --force; git checkout $GITHUB_HEAD_REF; git pull --force"
- name: Run tests
run: "sbatch .github/workflows/gpu-test.sbatch;
/home/js2430/rds/hpc-work/OceanBioME-runner/_work/_temp/julia-1.9.3/bin/julia -O0 --color=yes --project test/check_results.jl"
- name: Clean up
if: always()
run: "rm -rf $RDS_HOME/_temp/julia-$JULIA_VERSION; rm results.test" # presumably this happens anyway