-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (44 loc) · 1.38 KB
/
Copy pathdocs-sync.yml
File metadata and controls
55 lines (44 loc) · 1.38 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
name: docs-sync
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: docs-sync-${{ github.ref }}
cancel-in-progress: true
jobs:
docs-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "tools/docs-sync/uv.lock"
- name: Pin Python
run: uv python install 3.13
- name: Sync docs-sync tool (including dev group)
run: uv sync --project tools/docs-sync --all-groups --frozen
- name: Lint (ruff)
working-directory: tools/docs-sync
run: |
uv run ruff check .
uv run ruff format --check .
- name: Type-check (mypy strict)
working-directory: tools/docs-sync
run: uv run mypy .
- name: Tool unit tests
working-directory: tools/docs-sync
run: uv run pytest -q
- name: Run docs-sync against the repo (warn-only during bootstrap)
run: uv run --project tools/docs-sync docs-sync check --warn-only --format all --report target/docs-sync
- name: Upload docs-sync report
if: always()
uses: actions/upload-artifact@v4
with:
name: docs-sync-report
path: target/docs-sync.*
if-no-files-found: warn
retention-days: 30