-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 910 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and Test Documentation
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
# Add this step to install aspell and the Spanish dictionary
apt update && apt install -y aspell aspell-es
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build documentation
run: |
sphinx-build -b html docs/ docs/_build/html
# TODO: when known how to use 2 dictionaries, Spanish and English, uncomment this
# - name: Documentation tests
# run: |
# sphinx-build -W --keep-going -b spelling docs/ docs/_build/spelling