-
Notifications
You must be signed in to change notification settings - Fork 51
51 lines (44 loc) · 1.15 KB
/
python.yml
File metadata and controls
51 lines (44 loc) · 1.15 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
name: Python Agent SDK CI/CD
on:
push:
branches: [ main, master ]
paths:
- "python/**"
- ".github/workflows/python.yml"
pull_request:
branches:
- main
paths:
- "python/**"
- ".github/workflows/python.yml"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@v1
with:
version: "0.8.5"
- name: Install dependencies
env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: uv sync --frozen --all-extras --project python
- name: Run checks
env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: make -C python check
- name: Run tests
env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: make -C python test