Skip to content

Commit

Permalink
Test on Python 3.12 and PyPy 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 17, 2023
1 parent 025fd56 commit 13b82c6
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 10 deletions.
6 changes: 4 additions & 2 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,pypy-3.7,pypy-3.8'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -32,9 +32,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {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-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-alpha.7", 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: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5}", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
6 changes: 4 additions & 2 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,pypy-3.7,pypy-3.8'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -33,9 +33,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {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-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-alpha.7", 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: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5}", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
6 changes: 4 additions & 2 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,pypy-3.7,pypy-3.8'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12.0-alpha.7,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -32,9 +32,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {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-dev-sphinx{3.2,3.3,3.4,3.5},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5},build", experimental: False}
- {python-version: "3.12.0-alpha.7", 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: "pypy-3.9", testenvs: "pypy39-sphinx{3.2,3.3,3.4,3.5}", experimental: True}

steps:
- name: Checkout 🛎️
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",]
python-versions = [ "3.7", "3.8", "3.9", "3.10", "3.11",]
python-implementations = [ "CPython", "PyPy",]
platforms = [ "Windows", "macOS", "Linux",]
license-key = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ python_versions:
- 3.8
- 3.9
- "3.10"
- 3.11-dev
- "3.11"
- 3.12-dev
- pypy37
- pypy38
- pypy39

keywords:
- sphinx
Expand Down
28 changes: 26 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# * tox
# * envlists
# * testenv
# * testenv:.package
# * testenv:py312-dev
# * testenv:docs
# * testenv:build
# * testenv:lint
Expand All @@ -22,9 +24,11 @@ envlist =
py38-sphinx{3.2,3.3,3.4,3.5}
py39-sphinx{3.2,3.3,3.4,3.5}
py310-sphinx{3.2,3.3,3.4,3.5}
py311-dev-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}
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}
mypy
build
skip_missing_interpreters = True
Expand All @@ -41,9 +45,11 @@ test =
py38-sphinx{3.2,3.3,3.4,3.5}
py39-sphinx{3.2,3.3,3.4,3.5}
py310-sphinx{3.2,3.3,3.4,3.5}
py311-dev-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}
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}
qa = mypy, lint
cov = py38-sphinx3.2, coverage
raspi = py3{7,8,9,10}-sphinx3.5
Expand All @@ -63,6 +69,16 @@ commands =
python --version
python -m pytest --cov=sphinx_highlights -r aR tests/ {posargs}

[testenv:.package]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

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

[testenv:docs]
setenv = SHOW_TODOS = 1
passenv = SPHINX_BUILDER
Expand All @@ -72,6 +88,9 @@ deps = -r{toxinidir}/doc-source/requirements.txt
commands = sphinx-build -M {env:SPHINX_BUILDER:html} . ./build {posargs}

[testenv:build]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
skip_install = True
changedir = {toxinidir}
deps =
Expand Down Expand Up @@ -220,3 +239,8 @@ filterwarnings =
always:pkg_resources is deprecated as an API:DeprecationWarning
always:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning
markers = sphinx
[testenv:py312-dev-sphinx{3.2,3.3,3.4,3.5}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

0 comments on commit 13b82c6

Please sign in to comment.