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 22, 2023
1 parent f062b32 commit 785d2b1
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .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,pypy-3.7'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -32,7 +32,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
6 changes: 5 additions & 1 deletion .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,pypy-3.7'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -33,7 +33,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", experimental: True}

steps:
- name: Checkout 🛎️
Expand Down
6 changes: 5 additions & 1 deletion .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,pypy-3.7'
USING_COVERAGE: '3.7,3.8,3.9,3.10,3.11,3.12,pypy-3.7,pypy-3.8,pypy-3.9'

strategy:
fail-fast: False
Expand All @@ -32,7 +32,11 @@ jobs:
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
- {python-version: "3.11", testenvs: "py311,build", experimental: False}
- {python-version: "3.12", testenvs: "py312,build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39,build", 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 @@ -34,7 +34,7 @@ base-classifiers = [
"Topic :: Documentation",
"Typing :: Typed",
]
python-versions = [ "3.7", "3.8", "3.9", "3.10",]
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
4 changes: 4 additions & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ python_versions:
- 3.8
- 3.9
- '3.10'
- '3.11'
- '3.12'
- pypy37
- pypy38
- pypy39

github_ci_requirements:
Windows:
Expand Down
20 changes: 18 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,18 @@
# * pytest

[tox]
envlist = py37, py38, py39, py310, pypy37, mypy, build
envlist =
py37
py38
py39
py310
py311
py312
pypy37
pypy38
pypy39
mypy
build
skip_missing_interpreters = True
isolated_build = True
requires =
Expand All @@ -31,7 +42,7 @@ requires =
virtualenv!=20.16.0

[envlists]
test = py37, py38, py39, py310, pypy37
test = py37, py38, py39, py310, py311, py312, pypy37, pypy38, pypy39
qa = mypy, lint
cov = py38, coverage

Expand All @@ -50,6 +61,11 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

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

[testenv:docs]
setenv = SHOW_TODOS = 1
passenv = SPHINX_BUILDER
Expand Down

0 comments on commit 785d2b1

Please sign in to comment.