-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (70 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
90 lines (70 loc) · 1.92 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
# Ensure that only one workflow runs at a time for a given branc,
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
audit:
name: Audit dependencies
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
- name: Audit dependencies
run: npm audit
- name: Install dependencies
run: npm install --ignore-scripts
build-assets:
name: Build assets
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build assets
run: npm run build
build-docs:
name: Build docs
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build assets
run: npm run build
- name: Install Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv sync --extra dev
- name: Build docs
run: uv run sphinx-build -b html -W docs/source docs/build/html
- name: Verify output
run: test -f docs/build/html/index.html
- name: Upload docs artifact
uses: actions/upload-artifact@v7
with:
name: docs
path: docs/build/html