-
Notifications
You must be signed in to change notification settings - Fork 109
63 lines (56 loc) · 1.58 KB
/
slurm-local-integration-tests.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Slurm Integration Tests
on:
push:
branches:
- main
pull_request:
env:
SLURM_VERSION: 21.08.6
jobs:
slurm:
runs-on: linux.20_04.4x
permissions:
id-token: write
contents: read
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: x64
- name: Checkout TorchX
uses: actions/checkout@v2
- name: Checkout slurm-docker-cluster
run: |
set -ex
# TODO: switch to trunk once https://github.com/giovtorres/slurm-docker-cluster/pull/29 lands
git clone https://github.com/d4l3k/slurm-docker-cluster.git
- name: Pull docker containers
run: |
set -ex
cd slurm-docker-cluster
docker compose pull --ignore-pull-failures
continue-on-error: true
# cache layers to avoid rebuilding slurm
- uses: satackey/[email protected]
continue-on-error: true
- name: Build slurm
run: |
set -ex
cd slurm-docker-cluster
docker build -t slurm-docker-cluster:$SLURM_VERSION .
- name: Start slurm
run: |
set -ex
cd slurm-docker-cluster
IMAGE_TAG=$SLURM_VERSION docker compose up --detach
- name: Install Dependencies
run: |
set -ex
pip install wheel
- name: Run Slurm Integration Tests
run: |
set -e
mkdir -p ~/.ssh
echo "$SLURM_KNOWN_HOST" >> ~/.ssh/known_hosts
scripts/slurmdockerint.sh