Repository navigation
54 lines (54 loc) · 2.06 KB
/
Copy pathverify.yml
File metadata and controls
54 lines (54 loc) · 2.06 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
name: Framework verification
on: [push, pull_request, workflow_dispatch]
jobs:
contracts:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
python: ['3.11', '3.12', '3.13', '3.14', '3.15']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: frontend/package-lock.json
# ONNX model validation works on 3.15; ONNX Runtime has no cp315 wheels yet.
- run: python -m pip install -e ".[dev,loudness,web,devices]" "onnx>=1.16,<2" ziglang
- run: python -m pip install -e ".[models]"
if: matrix.python != '3.15'
- run: python -m ruff check src tests tools examples/modules
- run: python -m ruff format --check src tests tools examples/modules
- run: python -m pytest -q
- run: npm ci
working-directory: frontend
- run: npm test
working-directory: frontend
- run: npm run build
working-directory: frontend
- run: python -m pip wheel . --no-deps --wheel-dir dist
- shell: python
run: |
import glob, subprocess, sys
wheel = glob.glob('dist/*.whl')[0]
subprocess.run([sys.executable, 'tools/audit_wheel.py', wheel], check=True)
- name: Clean installation and current-format recovery
if: matrix.python == '3.12' || matrix.python == '3.15'
shell: python
run: |
import glob, subprocess, sys
wheel = glob.glob('dist/*.whl')[0]
subprocess.run([sys.executable, 'tools/verify_release.py',
'--candidate', wheel, '--output', 'dist/release-verification.json'],
check=True)
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}-py${{ matrix.python }}
path: |
dist/*.whl
dist/release-verification.json