-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (35 loc) · 978 Bytes
/
test-website.yml
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
name: Test website generation
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "tests/**"
- "examples/**"
- "**.json"
- "**.csv"
- "**.html"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: hynek/setup-cached-uv@v1
- run: uv pip install -e .[docs] --system
- run: uv pip freeze
- name: Regenerate examples and docs
run: python scripts/regenerate.py --download-typeshed
- name: Check the generated files with pre-commit
uses: pre-commit/action@v3.0.1
- name: Build docs
run: mkdocs build --strict
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: doc-html
path: site