a2d238d92e
Make Zed Agent closer to Cursor: deterministic DevOps path index, live Traefik port probe before blind edits, stop-after-edit, and quieter Russian progress.
39 lines
960 B
YAML
39 lines
960 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-gateway:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build gateway image
|
|
run: docker build -f router/Dockerfile -t ai-router-gateway:ci .
|
|
|
|
- name: Lint Python syntax
|
|
run: python3 -m py_compile router/*.py
|
|
|
|
- name: Unit tests (hierarchical)
|
|
run: |
|
|
pip install httpx pyyaml
|
|
PYTHONPATH=router python3 -m unittest discover -s test/unit -v
|
|
|
|
sync-config:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install PyYAML
|
|
run: pip install pyyaml
|
|
- name: Sync routing config (hybrid)
|
|
env:
|
|
PRIMARY_PROVIDER: hybrid
|
|
run: bash scripts/sync-routing-config.sh
|
|
- name: Sync routing config (openrouter reserve)
|
|
env:
|
|
PRIMARY_PROVIDER: openrouter
|
|
run: bash scripts/gen-litellm-config.py
|