|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request, workflow_dispatch] |
| 4 | + |
| 5 | +jobs: |
| 6 | + spindle-serial-ubuntu: |
| 7 | + name: Testsuite (Serial, Ubuntu) |
| 8 | + environment: Spindle CI |
| 9 | + runs-on: ubuntu-latest |
| 10 | + timeout-minutes: 20 |
| 11 | + steps: |
| 12 | + - name: Check out Spindle |
| 13 | + uses: actions/checkout@v5 |
| 14 | + with: |
| 15 | + path: 'Spindle' |
| 16 | + |
| 17 | + - name: Setup Docker Compose |
| 18 | + uses: docker/setup-compose-action@v1 |
| 19 | + with: |
| 20 | + version: latest |
| 21 | + |
| 22 | + - name: Build spindle-serial-ubuntu image |
| 23 | + id: serial-ubuntu-build |
| 24 | + run: | |
| 25 | + cd Spindle/containers/spindle-serial-ubuntu |
| 26 | + docker compose --progress=plain build |
| 27 | +
|
| 28 | + - name: Bring spindle-serial-ubuntu up |
| 29 | + id: serial-ubuntu-up |
| 30 | + run: | |
| 31 | + cd Spindle/containers/spindle-serial-ubuntu |
| 32 | + docker compose up -d |
| 33 | +
|
| 34 | + - name: Verify munge works in spindle-serial-ubuntu |
| 35 | + id: serial-ubuntu-munge |
| 36 | + run: | |
| 37 | + docker exec spindlenode bash -c 'munge -n | unmunge' |
| 38 | +
|
| 39 | + - name: Run spindle-serial-ubuntu testsuite |
| 40 | + id: serial-ubuntu-testsuite |
| 41 | + run: | |
| 42 | + docker exec spindlenode bash -c 'cd Spindle-build/testsuite && ./runTests' |
| 43 | +
|
| 44 | + - name: Bring spindle-serial-ubuntu down |
| 45 | + id: serial-ubuntu-down |
| 46 | + if: ${{ always() }} |
| 47 | + continue-on-error: true |
| 48 | + run: | |
| 49 | + cd Spindle/containers/spindle-serial-ubuntu |
| 50 | + docker compose down |
| 51 | +
|
| 52 | + spindle-flux-ubuntu: |
| 53 | + name: Testsuite (Flux, Ubuntu) |
| 54 | + environment: Spindle CI |
| 55 | + runs-on: ubuntu-latest |
| 56 | + timeout-minutes: 20 |
| 57 | + steps: |
| 58 | + - name: Check out Spindle |
| 59 | + uses: actions/checkout@v5 |
| 60 | + with: |
| 61 | + path: 'Spindle' |
| 62 | + |
| 63 | + - name: Setup Docker Compose |
| 64 | + uses: docker/setup-compose-action@v1 |
| 65 | + with: |
| 66 | + version: latest |
| 67 | + |
| 68 | + - name: Build spindle-flux-ubuntu image |
| 69 | + id: flux-ubuntu-build |
| 70 | + run: | |
| 71 | + cd Spindle/containers/spindle-flux-ubuntu |
| 72 | + docker compose --progress=plain build |
| 73 | +
|
| 74 | + - name: Bring spindle-flux-ubuntu up |
| 75 | + id: flux-ubuntu-up |
| 76 | + run: | |
| 77 | + cd Spindle/containers/spindle-flux-ubuntu |
| 78 | + docker compose up -d --wait --wait-timeout 60 |
| 79 | +
|
| 80 | + - name: Verify munge works in spindle-flux-ubuntu |
| 81 | + id: flux-ubuntu-munge |
| 82 | + run: | |
| 83 | + docker exec node-1 bash -c 'munge -n | unmunge' |
| 84 | +
|
| 85 | + - name: Run spindle-flux-ubuntu testsuite |
| 86 | + id: flux-ubuntu-testsuite |
| 87 | + run: | |
| 88 | + docker exec node-1 bash -c 'cd Spindle-build/testsuite && flux alloc --nodes=${workers} ./runTests --nodes=${workers} --tasks-per-node=3' |
| 89 | +
|
| 90 | + - name: Bring spindle-flux-ubuntu down |
| 91 | + id: flux-ubuntu-down |
| 92 | + if: ${{ always() }} |
| 93 | + continue-on-error: true |
| 94 | + run: | |
| 95 | + cd Spindle/containers/spindle-flux-ubuntu |
| 96 | + docker compose down |
| 97 | +
|
0 commit comments