Skip to content

Commit

Permalink
Test on newer Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Nov 20, 2023
1 parent 09b6261 commit d1adefd
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 17 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: "windows-2019"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -33,9 +33,10 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}

steps:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: "ubuntu-20.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -34,9 +34,10 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}

steps:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: "macos-latest"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -33,9 +33,10 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}

steps:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ base-classifiers = [
"Topic :: Utilities",
"Typing :: Typed",
]
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11",]
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12",]
python-implementations = [ "CPython", "PyPy",]
platforms = [ "Windows", "macOS", "Linux",]
license-key = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ python_versions:
- 3.9
- "3.10"
- "3.11"
- 3.12-dev
- "3.12"
- 3.13-dev
- pypy37
- pypy38
- pypy39
Expand Down
25 changes: 22 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# * envlists
# * testenv
# * testenv:.package
# * testenv:py313-dev
# * testenv:py312-dev
# * testenv:py312
# * testenv:docs
# * testenv:build
# * testenv:lint
Expand All @@ -25,7 +27,8 @@ envlist =
py39-sphinx{3.2,3.3,3.4,3.5}
py310-sphinx{3.2,3.3,3.4,3.5}
py311-sphinx{3.2,3.3,3.4,3.5}
py312-dev-sphinx{3.2,3.3,3.4,3.5}
py312-sphinx{3.2,3.3,3.4,3.5}
py313-dev-sphinx{3.2,3.3,3.4,3.5}
pypy37-sphinx{3.2,3.3,3.4,3.5}
pypy38-sphinx{3.2,3.3,3.4,3.5}
pypy39-sphinx{3.2,3.3,3.4,3.5}
Expand All @@ -46,7 +49,8 @@ test =
py39-sphinx{3.2,3.3,3.4,3.5}
py310-sphinx{3.2,3.3,3.4,3.5}
py311-sphinx{3.2,3.3,3.4,3.5}
py312-dev-sphinx{3.2,3.3,3.4,3.5}
py312-sphinx{3.2,3.3,3.4,3.5}
py313-dev-sphinx{3.2,3.3,3.4,3.5}
pypy37-sphinx{3.2,3.3,3.4,3.5}
pypy38-sphinx{3.2,3.3,3.4,3.5}
pypy39-sphinx{3.2,3.3,3.4,3.5}
Expand Down Expand Up @@ -74,7 +78,12 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py312-dev]
[testenv:py313-dev]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py312]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
Expand Down Expand Up @@ -243,6 +252,16 @@ filterwarnings =
always:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning
markers = sphinx
[testenv:py312-sphinx{3.2,3.3,3.4,3.5}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
[testenv:py313-dev-sphinx{3.2,3.3,3.4,3.5}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
[testenv:py312-dev-sphinx{3.2,3.3,3.4,3.5}]
setenv =
PYTHONDEVMODE=1
Expand Down

0 comments on commit d1adefd

Please sign in to comment.