Skip to content

Commit d5dc142

Browse files
committed
CI: Add test matrix for validating different Sphinx versions
1 parent cdaa201 commit d5dc142

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,22 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: ["ubuntu-latest"]
26-
python-version: ["3.9", "3.14"]
26+
python-version: ["3.10", "3.14"]
27+
sphinx-version: ["6.*", "7.*"]
28+
include:
29+
- os: "ubuntu-latest"
30+
python-version: "3.9"
31+
sphinx-version: "7.*"
2732

2833
env:
2934
OS: ${{ matrix.os }}
3035
PYTHON: ${{ matrix.python-version }}
3136

32-
name: Python ${{ matrix.python-version }} on OS ${{ matrix.os }}
37+
name: "
38+
Sphinx ${{ matrix.sphinx-version }}
39+
Python ${{ matrix.python-version }}
40+
OS ${{ matrix.os }}
41+
"
3342
steps:
3443

3544
- name: Acquire sources
@@ -50,6 +59,9 @@ jobs:
5059
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
5160
pip install "setuptools>=64" --upgrade
5261
62+
# Install Sphinx beforehand, to implement test matrix.
63+
pip install sphinx==${{ matrix.sphinx-version }}
64+
5365
# Install package in editable mode.
5466
pip install --use-pep517 --prefer-binary --editable=.[develop,docs,test]
5567

0 commit comments

Comments
 (0)