-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (41 loc) · 1.32 KB
/
weekly-docs.yaml
File metadata and controls
49 lines (41 loc) · 1.32 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
name: Weekly Docs Build
on:
schedule:
- cron: '0 8 * * 1'
workflow_dispatch:
concurrency:
group: weekly-docs-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Docs build (${{ matrix.os }}, python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
python-version: ["3.12", "3.13", "3.14"]
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[docs]
- name: Build docs (warnings as errors)
run: |
make -C docs clean
make -C docs html SPHINXOPTS="-W --keep-going"
- name: Upload docs artifacts on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: docs-${{ matrix.os }}-py${{ matrix.python-version }}-failure
path: |
docs/_build/**