-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (38 loc) · 1.4 KB
/
python.yml
File metadata and controls
38 lines (38 loc) · 1.4 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
name: Python
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: treeform/setup-nim-action@v6
- name: Checkout Pixie
uses: actions/checkout@v4
with:
repository: treeform/pixie
ref: pixie-binding-abi-fixes
path: pixie
- name: Move Pixie checkout beside Genny
run: rm -rf ../pixie && mv pixie ../pixie
- name: Install Pixie dependencies
run: cd .. && nimby install -g pixie/pixie.nimble
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build test DLL
run: nim c --mm:arc --app:lib -d:gennyPython -o:tests/generated/libtest.so tests/test.nim
- name: Run Python test
run: python tests/test_python.py
- name: Build Pixie bindings
run: cd ../pixie && nim c --mm:arc --app:lib -d:gennyPython --path:../genny/src --path:src -o:bindings/generated/libpixie.so bindings/bindings.nim
- name: Run Pixie Python test
run: PIXIE_ROOT=../pixie PIXIE_BINDINGS_DIR=../pixie/bindings/generated LD_LIBRARY_PATH=$PWD/../pixie/bindings/generated python tests/test_pixie_python.py
- name: Run non-gating benchmark
continue-on-error: true
run: python tests/bench_python.py
- name: Compare Pixie render goldens
run: nim r --mm:arc --path:../pixie/src tests/test_no_gold_diff.nim