test: TS emitter handles chat fixture (discriminated unions) tsc-clean #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install | |
| run: | | |
| uv venv --python ${{ matrix.python-version }} | |
| uv pip install -e ".[dev,generated-runtime]" | |
| - name: Lint | |
| run: uv run ruff check src tests | |
| # Tier-1 fidelity oracle: the real Stainless-generated OneBusAway SDK at | |
| # a pinned SHA. Drives the no-regression fidelity gate in pytest. | |
| # (openai/anthropic oracles are tracked metrics, run out-of-band, not | |
| # gated here — config-approximated, heavier.) | |
| - name: Fetch fidelity oracle | |
| run: bash scripts/fetch_oracles.sh onebusaway-python-sdk | |
| - name: Test | |
| run: uv run pytest -q |