forked from bruno-fs/cookiecutter-hypermodern-python
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 861 Bytes
/
docs.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
name: Check documentation
on: [push, pull_request]
jobs:
docs:
name: Build documentation & check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Create uv environment
run: uv venv
- name: Install dependencies
run: |
uv pip install --constraint=.github/workflows/constraints.txt pip
uv pip install --constraint=.github/workflows/constraints.txt nox
- name: Build documentation
run: uv run nox --force-color --session=docs
- uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build
- name: Check links
run: uv run nox --force-color --session=linkcheck