-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (57 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
62 lines (57 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.os }}, py${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v9.0.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install dependencies
run: uv sync --locked --group dev
# Unit tests only; integration tests (real agent CLI, real auth) are
# deselected by default via pytest addopts in pyproject.toml.
- name: Run tests
run: uv run pytest
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v9.0.0
with:
python-version: "3.12"
enable-cache: true
- name: Install dependencies
run: uv sync --locked --group dev
- name: Ruff check
run: uv run ruff check .
- name: Ruff format
run: uv run ruff format --check .
typecheck:
name: typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v9.0.0
with:
python-version: "3.12"
enable-cache: true
- name: Install dependencies
run: uv sync --locked --group dev
- name: Pyright
run: uv run pyright