Skip to content

Commit

Permalink
Add slurm github action
Browse files Browse the repository at this point in the history
  • Loading branch information
amq92 authored Jan 31, 2025
1 parent 3237685 commit e0dc3ee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/slurm-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tests on SLURM
on:
push:
branches:
- master
pull_request:
branches:
- master

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

# Afterwards, you can submit to the slurm cluster via sbatch and srun,
# and interact via all other usual commands.
- run: |
sinfo

0 comments on commit e0dc3ee

Please sign in to comment.