-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.25 KB
/
Copy pathci.yml
File metadata and controls
42 lines (38 loc) · 1.25 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
name: ci
# forgequant's own code is stdlib-only and does not need ds4, models, or a benchy
# checkout to run its tests — so CI is fully hermetic: byte-compile every module and
# run the unit suite (the .dat imatrix parser, corpus renderer, recipe loader, and UI
# path-traversal guards). The numpy job exercises the optional fast aggregation path.
on:
push:
branches: [main]
pull_request:
workflow_dispatch: {}
jobs:
tests:
runs-on: ubuntu-latest
name: tests (py${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Byte-compile every module (syntax check)
run: python -m compileall -q -x 'benchy/.*' .
- name: Unit tests
run: python test_forge.py
tests-with-numpy:
runs-on: ubuntu-latest
name: tests (numpy fast path)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install numpy
- name: Unit tests with numpy present
run: python test_forge.py