Skip to content

Commit b44965f

Browse files
authored
upgrade the test matrix (#70)
* downgrade jinja if we're looking at sphinx<4.0 * test all of the new versions of sphinx * also test on python=3.10 * run all CI jobs * exclude the sphinx versions incompatible with py3.10
1 parent 3bb1dee commit b44965f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
strategy:
15+
fail-fast: false
1516
matrix:
16-
python-version: ['3.7', '3.8', '3.9']
17-
sphinx-version: ['3.3', '3.4', '3.5', '4.0']
17+
python-version: ['3.7', '3.8', '3.9', '3.10']
18+
sphinx-version: ['3.3', '3.4', '3.5', '4.0', '4.1', '4.2', '4.3', '4.4', '4.5']
19+
exclude:
20+
# sphinx versions incompatible with python 3.10
21+
- python-version: "3.10"
22+
sphinx-version: "3.5"
23+
- python-version: "3.10"
24+
sphinx-version: "4.0"
25+
- python-version: "3.10"
26+
sphinx-version: "4.1"
1827

1928
steps:
2029
- name: checkout the repository
@@ -39,6 +48,9 @@ jobs:
3948
- name: install sphinx
4049
run: |
4150
python -m pip install "sphinx==${{matrix.sphinx-version}}"
51+
if [[ "${{matrix.sphinx-version}}" < "4.0" ]]; then
52+
python -m pip install "jinja2<3.1"
53+
fi
4254
4355
- name: install other dependencies
4456
run: python -m pip install -r docs/requirements.txt

0 commit comments

Comments
 (0)