-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
44 lines (35 loc) · 1.1 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
41
42
43
44
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Lint
run: uv run ruff check .
- name: Type check
run: uv run mypy src/
- name: Test
# Integration tests skip automatically when no gateway is on PATH.
run: uv run pytest
- name: Endpoint-coverage manifest checks
# sdk-endpoints.txt is pushed here by the gateway's codegen workflow. The
# drift gate that compares it against the OpenAPI spec now runs in the
# gateway, against the spec from the same commit; these checks are the
# offline structural ones. See the docstring of the test module.
run: uv run pytest tests/unit/test_endpoint_coverage.py -v