-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 2.3 KB
/
Copy pathci.yml
File metadata and controls
65 lines (61 loc) · 2.3 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
61
62
63
64
65
name: ci
# Gates the load-bearing claim in README.md / integer_engine.md: the pure-integer CPU ORACLE is byte-exact
# with the C/OpenMP NATIVE producer (incl. the int64 overflow boundary), enforced on every push/PR. GPU
# parity is not run in this CPU workflow; the separate gpu-exactness workflow gates it on a self-hosted GPU.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
bonsai:
name: bonsai (oracle ⇄ native byte-exact)
runs-on: ubuntu-latest
defaults:
run:
working-directory: bonsai
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Create venv + install deps
run: |
uv venv
uv pip install -r requirements.txt -r requirements_test.txt
- name: Build native Q1 kernel (C/OpenMP producer)
run: tools/build_bonsai_q1_kernel.sh
- name: Run test suite (native kernel MANDATORY)
# TRINOTE_REQUIRE_NATIVE=1 makes the oracle⇄native parity non-skippable: if the kernel is missing the
# suite FAILS rather than silently passing on the oracle alone.
env:
TRINOTE_REQUIRE_NATIVE: "1"
PYTHONPATH: src
run: .venv/bin/python -m pytest -q
north-mini-code:
name: north-mini-code (codec + integer engine)
runs-on: ubuntu-latest
defaults:
run:
working-directory: north-mini-code
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Create venv (py3.12) + install deps
run: |
uv venv --python 3.12
uv pip install -r requirements.txt -r requirements_test.txt -r requirements_receipts.txt
- name: Build native Q4_K/Q6_K kernel (CPU producer)
run: tools/build_nmc_kernel.sh
- name: Run test suite
# GPU (cuda) tests self-skip on a CPU runner; the codec/oracle/CPU-kernel/receipt suites run.
env:
NMC_BONSAI_SRC: ../bonsai/src
PYTHONPATH: src
run: .venv/bin/python -m pytest -q