-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (43 loc) · 1.29 KB
/
Copy pathci.yml
File metadata and controls
47 lines (43 loc) · 1.29 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
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: typescript/package-lock.json
- run: npm ci
working-directory: typescript
- run: npx playwright install --with-deps chromium
working-directory: typescript/web-ui-showcase
- run: npm run check --workspaces
working-directory: typescript
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v6
- run: uv sync
working-directory: python
- run: uv run ruff check .
working-directory: python
- run: uv run ruff format --check .
working-directory: python
- name: Type-check samples
run: |
for sample in quickstart multi-turn-conversation streaming-chat code-review tool-permissions ask-user-question model-selection hooks custom-tools subagents external-session-storage; do
uv run mypy "$sample"
done
working-directory: python