File tree Expand file tree Collapse file tree 3 files changed +125
-1
lines changed
Expand file tree Collapse file tree 3 files changed +125
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Run PyTorch IR Tests
2+
3+ on :
4+ pull_request :
5+ branches : [ main ]
6+ push :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-22.04
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : " 3.11"
21+
22+ - name : Cache pip dependencies
23+ uses : actions/cache@v3
24+ with :
25+ path : ~/.cache/pip
26+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'setup_backend.sh') }}
27+ restore-keys : |
28+ ${{ runner.os }}-pip-
29+
30+ - name : Cache npm dependencies
31+ uses : actions/cache@v3
32+ with :
33+ path : |
34+ ~/.npm
35+ node_modules
36+ key : ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json', 'setup_frontend.sh') }}
37+ restore-keys : |
38+ ${{ runner.os }}-npm-
39+
40+ - name : Set up backend dependencies
41+ run : bash setup_backend.sh
42+
43+ - name : Prepend LLVM 21 to PATH
44+ run : echo "/usr/lib/llvm-21/bin" >> $GITHUB_PATH
45+
46+ - name : Set up frontend
47+ run : bash setup_frontend.sh
48+
49+ - name : Start backend server in background
50+ env :
51+ PYTHONPATH : ${{ github.workspace }}
52+ run : |
53+ source mlir_venv/bin/activate
54+ uvicorn backend.server:app --host 0.0.0.0 --port 8000 > backend.log 2>&1 &
55+ shell : bash
56+
57+ - name : Start frontend server in background
58+ run : |
59+ npm run dev &
60+ shell : bash
61+
62+ - name : Wait for backend to be ready
63+ run : |
64+ for i in {1..30}; do
65+ if curl -s http://localhost:8000/docs > /dev/null; then
66+ echo "Backend ready"
67+ exit 0
68+ fi
69+ echo "Waiting for backend..."
70+ sleep 2
71+ done
72+ echo "Backend did not start in time. Dumping log:"
73+ cat backend.log
74+ exit 1
75+
76+ - name : Run tests
77+ run : |
78+ source mlir_venv/bin/activate
79+ pytest tests/
80+ shell : bash
Original file line number Diff line number Diff line change 1+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+ # dependencies
4+ /node_modules
5+ /.pnp
6+ .pnp. *
7+ .yarn /*
8+ ! .yarn /patches
9+ ! .yarn /plugins
10+ ! .yarn /releases
11+ ! .yarn /versions
12+
13+ # python temps
14+ __pycache__ /
15+
16+ # testing
17+ /coverage
18+
19+ # next.js
20+ /.next /
21+ /out /
22+
23+ # production
24+ /build
25+
26+ # misc
27+ .DS_Store
28+ * .pem
29+
30+ # debug
31+ npm-debug.log *
32+ yarn-debug.log *
33+ yarn-error.log *
34+ .pnpm-debug.log *
35+
36+ # env files (can opt-in for committing if needed)
37+ .env *
38+
39+ # vercel
40+ .vercel
41+
42+ # typescript
43+ * .tsbuildinfo
44+ next-env.d.ts
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ export default function PyTorchTritonExplorer() {
371371 style = { {
372372 display : "flex" ,
373373 height : "100vh" ,
374- padding : "0.1 %" ,
374+ padding : "0.2 %" ,
375375 paddingRight : "0.2%" ,
376376 backgroundImage : "url('katze.png')" ,
377377 backgroundSize : "cover" ,
You can’t perform that action at this time.
0 commit comments