Skip to content

Commit 3625fe9

Browse files
committed
Update CI to test all Python and Sphinx combinations
Match CI test matrix to tox configuration: - Python versions: 3.11, 3.12, 3.13 - Sphinx versions: 6, 7, 8 - Total: 9 test combinations This ensures CI tests the same environments as local tox testing, providing better coverage and catching version-specific issues.
1 parent 45722f5 commit 3625fe9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
python-version: ["3.11", "3.12"]
26+
python-version: ["3.11", "3.12", "3.13"]
27+
sphinx-version: ["6", "7", "8"]
2728
steps:
2829
- uses: actions/checkout@v4
2930
- name: Set up Python ${{ matrix.python-version }}
@@ -34,16 +35,17 @@ jobs:
3435
run : |
3536
python -m pip install --upgrade pip
3637
pip install -e.[testing]
38+
pip install "sphinx>=${{ matrix.sphinx-version }},<${{ matrix.sphinx-version == '6' && '7' || matrix.sphinx-version == '7' && '8' || '9' }}"
3739
- name: Run pytest
3840
run: |
3941
pytest --durations=10 --cov=sphinx_exercise --cov-report=xml --cov-report=term-missing
4042
- name: Create cov
4143
run: coverage xml
4244
- name: Upload to Codecov
43-
if: false && (matrix.python-version == '3.11')
45+
if: false && (matrix.python-version == '3.11' && matrix.sphinx-version == '8')
4446
uses: codecov/codecov-action@v4
4547
with:
46-
name: sphinx-exercise-pytest-py3.11
48+
name: sphinx-exercise-pytest-py3.11-sphinx8
4749
token: "${{ secrets.CODECOV_TOKEN }}"
4850
flags: pytests
4951
file: ./coverage.xml

0 commit comments

Comments
 (0)