-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (41 loc) · 1.16 KB
/
slurm-tests.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Run Tests Inside SLURM
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
testing:
runs-on: ubuntu-latest
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:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up SLURM
uses: koesterlab/setup-slurm-action@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Copy files to SLURM node
run: |
mkdir -p $HOME/slurm_workspace
rsync -av --progress . $HOME/slurm_workspace/
ls -lah $HOME/slurm_workspace # Debugging step
- name: Run tests with unittest
run: |
cd $HOME/slurm_workspace
python -m unittest -v