-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (71 loc) · 2.76 KB
/
Copy pathci.yml
File metadata and controls
87 lines (71 loc) · 2.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Python, Web, and macOS checks
runs-on: macos-latest
timeout-minutes: 20
defaults:
run:
working-directory: oida
steps:
- name: Checkout Oída
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
path: oida
- name: Checkout Earworm
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: sonicfieldlabs/earworm
path: earworm
- name: Checkout AKOÚŌ contract
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: sonicfieldlabs/akouo
path: akouo
- name: Checkout Akousmata
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: sonicfieldlabs/akousmata
path: akousmata
- name: Install uv
uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
- name: Install Python dependencies
run: uv sync --extra dev
# pytest collects the unittest.TestCase suite too; one runner is enough.
- name: Run Python tests
run: uv run pytest -q -W error::starlette.exceptions.StarletteDeprecationWarning
- name: Compile Python modules
run: uv run python -m compileall -q oida harness bench_adapter scripts tests
- name: Check dashboard JavaScript
run: node --check oida/static/app.js
- name: Build Python distributions and canonical dependency wheels
run: |
uv build
mkdir -p "$RUNNER_TEMP/oida-wheels"
uv build --wheel --out-dir "$RUNNER_TEMP/oida-wheels" ../akouo
uv build --wheel --out-dir "$RUNNER_TEMP/oida-wheels" ../earworm/packages/py-akousma
uv build --wheel --out-dir "$RUNNER_TEMP/oida-wheels" ../akousmata
- name: Smoke isolated Python wheel
working-directory: ${{ runner.temp }}
env:
UV_FIND_LINKS: ${{ runner.temp }}/oida-wheels
run: >-
uv run --isolated --no-project
--with "$GITHUB_WORKSPACE"/oida/dist/sonicfield_oida-*.whl
python -c 'import importlib.resources as r; import oida, oida.reasoning.audio_router, oida.server; assert r.files("oida").joinpath("integration_assets", "codex", "README.md").is_file(); print(oida.__version__)'
- name: Build macOS shell
working-directory: oida/apps/macos
run: |
swift build
swift build -Xswiftc -strict-concurrency=complete
- name: Package unsigned app
run: apps/macos/script/package_unsigned.sh
- name: Release smoke
run: scripts/release_smoke_with_stub.sh