-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (32 loc) · 1.04 KB
/
Copy pathci.yml
File metadata and controls
40 lines (32 loc) · 1.04 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
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