-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) Β· 1.41 KB
/
Copy pathci.yml
File metadata and controls
64 lines (52 loc) Β· 1.41 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
validate:
name: Validate errors, build index, run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up environment
run: |
uv venv
uv pip install -e ".[dev]"
- name: Lint (ruff)
run: uv run ruff check .
- name: Validate every error document (front matter + sections + slugs)
run: uv run errlib validate
- name: Check for duplicate slugs and run the test suite
run: uv run pytest
- name: Build the search index
run: uv run errlib index --out search-index.json
- name: Report library stats
run: uv run errlib stats
- name: Upload search index artifact
uses: actions/upload-artifact@v4
with:
name: search-index
path: search-index.json
links:
name: Check Markdown links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lychee link checker
uses: lycheeverse/lychee-action@v2
with:
args: >-
--no-progress
--max-concurrency 8
--accept 200,206,429
--exclude-mail
'./**/*.md'
fail: false