forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.31 KB
/
cpp-op-test.yaml
File metadata and controls
45 lines (40 loc) · 1.31 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
name: cpp-ops
permissions:
contents: read
on:
workflow_call:
jobs:
test:
runs-on: h20
steps:
- id: checkout-attempt-1
uses: actions/checkout@v6
continue-on-error: true
- id: sleep-1
if: steps.checkout-attempt-1.outcome == 'failure'
shell: bash
run: sleep 30s
- id: checkout-attempt-2
if: steps.checkout-attempt-1.outcome == 'failure'
uses: actions/checkout@v6
continue-on-error: true
- id: sleep-2
if: steps.checkout-attempt-2.outcome == 'failure'
shell: bash
run: sleep 30s
- id: checkout-attempt-3
if: steps.checkout-attempt-2.outcome == 'failure'
uses: actions/checkout@v6
- shell: bash
run: |
export PATH="/home/secure/.pyenv/bin:/usr/local/cuda-12.8/bin:$PATH"
eval "$(pyenv init -)"
export CMAKE_ARGS="-DFLAGGEMS_BUILD_C_EXTENSIONS=ON -DCMAKE_BUILD_TYPE=Release"
pip install -v -e . --no-build-isolation
- shell: bash
run: |
export PATH="/home/secure/.pyenv/bin:/usr/local/cuda-12.8/bin:$PATH"
eval "$(pyenv init -)"
cd build/cpython-*/ctests
export FLAGGEMS_SOURCE_DIR=$(python -c "import os;import flag_gems;print(os.path.dirname(flag_gems.__file__))")
ctest -V