Repository navigation
62 lines (51 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
62 lines (51 loc) · 1.5 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
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
name: CI
permissions:
contents: read
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * *"
jobs:
Test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.14"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: ultralytics/actions/setup-uv@main
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Generate SDKs
run: |
bun run generate
cp -R generated generated.first
bun run generate
diff --recursive generated.first generated
- name: Check application
run: |
bun run typecheck
bun run lint
bun run knip
bun run test
bun run build
- name: Check generated Python SDK
run: |
python -m compileall -q generated/python/src
uv pip install ./generated/python
python -c 'import importlib, json; c = json.load(open("openapi.config.json"))["python"]; m = importlib.import_module(c["package"]); getattr(m, c["client"]); getattr(m, "Async" + c["client"])'
uvx ruff@0.16.2 check generated/python