🔧 Compatibility with Sphinx 7.2 #1437
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: [pull_request] | |
jobs: | |
tests: | |
name: "py${{ matrix.python-version }} sp${{ matrix.sphinx-version }} do${{ matrix.docutils-version }} ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true # Set on "false" to get the results of ALL builds | |
matrix: | |
os: ["ubuntu-latest"] | |
# 3.9.8 seems to be broken with type_ast | |
# https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1829077.html | |
python-version: ["3.9", "3.10", "3.11"] | |
sphinx-version: ["7.2.0", "7.2.6"] | |
docutils-version: ["0.19", "0.20", "0.20.1"] | |
exclude: | |
- sphinx-version: "4.5.0" | |
docutils-version: "0.19" | |
include: | |
# Check only newest setups for win server | |
- os: "windows-latest" | |
python-version: "3.11" | |
sphinx-version: "7.2.6" | |
docutils-version: "0.20.1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Nox Dependencies | |
run: | | |
python -m pip install poetry nox nox-poetry pyparsing==3.0.4 | |
- name: Install other dependencies | |
run: | | |
python -m pip install setuptools | |
- name: Final package list | |
run: | | |
pip freeze | |
- name: Run Tests on Windows | |
run: nox --non-interactive --session "tests-${{ matrix.python-version }}(sphinx='${{ matrix.sphinx-version }}', docutils='${{ matrix.docutils-version }}')" -- --full-trace | |
if: runner.os == 'Windows' | |
- name: Run Tests on Linux | |
run: nox --non-interactive --session "tests-${{ matrix.python-version }}(sphinx='${{ matrix.sphinx-version }}', docutils='${{ matrix.docutils-version }}')" -- --full-trace | |
if: runner.os == 'Linux' | |
lint: | |
name: Lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- uses: pre-commit/action@v3.0.0 |