-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 997 Bytes
/
ci.yml
File metadata and controls
44 lines (35 loc) · 997 Bytes
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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python }}
enable-cache: true
- run: uv sync --all-extras --dev
- name: Codegen drift check
if: matrix.python == '3.12'
run: |
uv run python generate.py
git diff --exit-code -- specs/openapi.json src/roxy_sdk/factory.py \
|| { echo 'codegen drift: commit the regenerated files'; exit 1; }
- name: Lint
if: matrix.python == '3.12'
run: uv run ruff check .
- name: Typecheck
if: matrix.python == '3.12'
run: uv run mypy src/roxy_sdk/__init__.py
- name: Test
run: uv run pytest tests/test_factory.py -v