-
Notifications
You must be signed in to change notification settings - Fork 58
60 lines (50 loc) · 1.76 KB
/
iluvatar-build-and-test.yml
File metadata and controls
60 lines (50 loc) · 1.76 KB
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
name: Iluvatar-Build-And-Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
iluvatar-build-and-test:
runs-on: iluvatar
if: ${{ github.repository == 'FlagTree/flagtree' }}
steps:
- name: Checkout code (attempt 1)
id: checkout1
uses: actions/checkout@v4
continue-on-error: true
- name: Sleep before checkout2
if: steps.checkout1.outcome == 'failure'
run: |
echo "First checkout attempt failed. Sleeping for 120 seconds before retry..."
sleep 120
- name: Checkout code (attempt 2)
id: checkout2
if: steps.checkout1.outcome == 'failure'
uses: actions/checkout@v4
continue-on-error: true
- name: Sleep before final checkout
if: steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
run: |
echo "Second checkout attempt failed. Sleeping for 180 seconds before final retry..."
sleep 180
- name: Checkout code (final attempt)
if: steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
uses: actions/checkout@v4
- name: Verify checkout success
if: success()
run: echo "Checkout completed successfully"
- name: FlagTree Build on Iluvatar
shell: bash
run: |
export FLAGTREE_BACKEND=iluvatar
source ~/env.sh
cd python
MAX_JOBS=20 pip3 install . --no-build-isolation
- name: FlagTree Test on Iluvatar
shell: bash
run: |
CUDA_VISIBLE_DEVICES=15 pytest -s third_party/iluvatar/python/test/unit