-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (32 loc) · 987 Bytes
/
sphinx-legacy.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
name: Sphinx legacy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
python-version: '3.8'
strategy:
matrix:
sphinx-version: [ '1.6.7', '1.8.6', '2.4.5', '3.5.4', '4.5.0' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
- name: Set up Sphinx ${{ matrix.sphinx-version }}
run: |
python -V
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
pip install "sphinx==${{ matrix.sphinx-version }}"
pip install "docutils<0.17"
pip install "jinja2<3.1"
- name: Tests
run: |
python -m sphinx tests tests/_build/ -b html -W -C -D master_doc=index -D extensions=sphinxcontrib.katex
python -m sphinx tests tests/_build/ -c docs/ -b latex -W