Skip to content

Setup a SLURM cluster in the GitHub CI for integration tests [MT-34] #1

Setup a SLURM cluster in the GitHub CI for integration tests [MT-34]

Setup a SLURM cluster in the GitHub CI for integration tests [MT-34] #1

Workflow file for this run

name: Setup a Slurm Cluster for tests
on: [push, pull_request]
jobs:
testing:
runs-on: ubuntu-latest
# For the action to work, you have to supply a mysql
# service as defined below.
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
ports:
- "8888:3306"
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: koesterlab/setup-slurm-action@v1
- name: Test if the slurm cluster is setup correctly
run: sinfo
# Afterwards, you can submit to the slurm cluster via sbatch and srun,
# and interact via all other usual commands.