[pre-commit.ci] pre-commit autoupdate (#113) #281
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linux: | |
name: 'sphinx v${{matrix.sphinx-version}} py${{matrix.python-version}}' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
sphinx-version: ['3.5', '4.5', '5.0', '5.1', '5.2', '5.3', '6.0', '6.1'] | |
exclude: | |
# sphinx versions incompatible with python 3.10 | |
- python-version: "3.10" | |
sphinx-version: "3.5" | |
- python-version: "3.11" | |
sphinx-version: "3.5" | |
steps: | |
- name: checkout the repository | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: cache pip | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: pip-py${{ matrix.python-version }} | |
restore-keys: | | |
pip-py${{ matrix.python-version }} | |
- name: upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: install sphinx | |
run: | | |
python -m pip install "sphinx==${{matrix.sphinx-version}}" | |
if [[ "${{matrix.sphinx-version}}" < "4.0" ]]; then | |
python -m pip install "jinja2<3.1" "docutils<0.18" | |
fi | |
- name: install other dependencies | |
run: python -m pip install -r ci/requirements.txt | |
- name: install the extension | |
run: python -m pip install . | |
- name: show versions | |
run: python -m pip list | |
- name: build the documentation | |
run: | | |
cd docs | |
python -m sphinx -M html -d _build/doctrees -EWT -a . _build/html |