Skip to content

Commit

Permalink
GH Actions: Add separate job for Sphinx 4.5 (#239)
Browse files Browse the repository at this point in the history
Updated GH actions and `tox.ini` to get tests to run with Sphinx 4.5
  • Loading branch information
joeced authored Jan 15, 2024
1 parent e489a83 commit 528b520
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,35 @@ on:
- cron: '* 6 * * *'

jobs:
test:
test-sphinx-45:
name: Run tests for Python ${{ matrix.python-version }}, Sphinx 4.5, Pygments ${{ matrix.pygments-version }}
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
pygments-version: ["213", "latest"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Run with Tox
run: |
pip install tox==4.8.0
tox -e "${{matrix.python-version}}-sphinx45-pygments${{matrix.pygments-version}}"
test-sphinx-newer:
name: Run tests for Python ${{ matrix.python-version }}, Sphinx ${{ matrix.sphinx-version }}, Pygments ${{ matrix.pygments-version }}
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
sphinx-version: ["45", "53", "60", "latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
sphinx-version: ["53", "60", "latest"]
pygments-version: ["213", "latest"]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ deps =
.
pytest
sphinx45: Sphinx>=4.5,<4.6
sphinx45: sphinxcontrib-devhelp==1.0.2
sphinx45: sphinxcontrib-applehelp==1.0.4
sphinx45: sphinxcontrib-htmlhelp==2.0.1
sphinx45: sphinxcontrib-serializinghtml==1.1.5
sphinx45: sphinxcontrib-qthelp==1.0.3
sphinx53: Sphinx>=5.3,<5.4
sphinx60: Sphinx>=6.0,<6.1
sphinxlatest: Sphinx
Expand Down

0 comments on commit 528b520

Please sign in to comment.