-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 955 Bytes
/
test.yml
File metadata and controls
39 lines (34 loc) · 955 Bytes
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
name: integration-test
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main ]
jobs:
integration-test:
runs-on: ubuntu-latest
services:
docker:
image: docker:24.0.5
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Build and start containers
run: docker-compose up -d --build
- name: Wait for slurmctl to be ready
run: |
for i in {1..30}; do
if docker-compose exec slurmctl curl -sf http://localhost:6820/slurm/v0.0.36/clusters; then
break
fi
sleep 5
done
- name: Install package
run: pip install
- name: Run integration tests
run: docker-compose run --rm app pytest tests/integration