-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (79 loc) · 2.51 KB
/
Copy pathci.yml
File metadata and controls
84 lines (79 loc) · 2.51 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: ci
on:
push:
branches: [master]
pull_request:
jobs:
checks:
name: tests · types · lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.10.x"
python-version: ${{ matrix.python-version }}
- name: Install
run: uv sync
- name: Tests
run: uv run python -m pytest -q --cov=reactifact --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: false
- name: Types (mypy)
run: uv run python -m mypy
- name: Lint (ruff)
run: uv run python -m ruff check
- name: Format (ruff)
run: uv run python -m ruff format --check
docs:
name: docs (mkdocs --strict)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.10.x"
python-version: "3.12"
- name: Build (strict)
run: uv run --group docs mkdocs build --strict -d /tmp/mkdocs_out
a2a-interop:
name: a2a interop (official a2a-sdk)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.10.x"
python-version: "3.12"
- name: Interop with a2a-sdk
run: uv run --group a2a python -m pytest tests/test_a2a_interop.py -q
build-and-smoke:
name: build wheel + smoke
needs: checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "0.10.x"
python-version: "3.12"
- name: Install
run: uv sync
- name: Build
run: uv build
- name: Wheel smoke (clean venv)
run: |
uv venv /tmp/reactifact-ci
uv pip install --python /tmp/reactifact-ci/bin/python dist/reactifact-*.whl
/tmp/reactifact-ci/bin/python -c "import reactifact; print('version', reactifact.__version__)"
/tmp/reactifact-ci/bin/reactifact --help >/dev/null
/tmp/reactifact-ci/bin/reactifact graph examples.knowledge.agents >/dev/null 2>&1 || true
if unzip -l dist/reactifact-*.whl | grep -qE "examples/|tests/"; then echo "examples/tests leaked into wheel"; exit 1; fi