2021-02-25 11:35:46 +00:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
|
|
|
push:
|
|
|
|
branches:
|
2021-03-09 06:27:51 +00:00
|
|
|
- main
|
2021-02-25 11:35:46 +00:00
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
2021-07-29 09:54:14 +00:00
|
|
|
# OS must be the same as on djangoproject.com.
|
|
|
|
runs-on: ubuntu-18.04
|
2021-02-25 11:35:46 +00:00
|
|
|
name: docs
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2021-10-05 19:09:54 +00:00
|
|
|
python-version: '3.10'
|
2021-02-25 11:35:46 +00:00
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|
- run: python -m pip install -r docs/requirements.txt
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
cd docs
|
|
|
|
sphinx-build -b spelling -n -q -W --keep-going -d _build/doctrees -D language=en_US -j auto . _build/spelling
|