Skip to content

docs: prepare Oída public alpha release #17

docs: prepare Oída public alpha release

docs: prepare Oída public alpha release #17

Workflow file for this run

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