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 e1e2313 commit 5cb694a
Show file tree
Hide file tree
Showing 6 changed files with 44 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.6,3.7,3.8,3.9,3.10,3.11'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1'

strategy:
fail-fast: False
Expand All @@ -33,7 +33,9 @@ jobs:
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-dev-click{7,8},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-click{7,8},build", 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.6,3.7,3.8,3.9,3.10,3.11'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1'

strategy:
fail-fast: False
Expand All @@ -34,7 +34,9 @@ jobs:
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-dev-click{7,8},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-click{7,8},build", 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.6,3.7,3.8,3.9,3.10,3.11'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.1'

strategy:
fail-fast: False
Expand All @@ -33,7 +33,9 @@ jobs:
- {python-version: "3.8", testenvs: "py38-click{7,8},build", experimental: False}
- {python-version: "3.9", testenvs: "py39-click{7,8},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-click{7,8},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-dev-click{7,8},build", experimental: True}
- {python-version: "3.11", testenvs: "py311-click{7,8},build", experimental: False}
- {python-version: "3.12", testenvs: "py312-click{7,8},build", experimental: False}
- {python-version: "3.13.0-alpha.1", testenvs: "py313-dev-click{7,8},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 = [
"Intended Audience :: Developers",
"Typing :: Typed",
]
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10",]
python-versions = [ "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12",]
python-implementations = [ "CPython",]
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 @@ -22,7 +22,9 @@ python_versions:
- '3.8'
- '3.9'
- "3.10"
- 3.11-dev
- "3.11"
- "3.12"
- 3.13-dev

keywords:
- formatting
Expand Down
30 changes: 28 additions & 2 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,9 @@ envlist =
py38-click{7,8}
py39-click{7,8}
py310-click{7,8}
py311-dev-click{7,8}
py311-click{7,8}
py312-click{7,8}
py313-dev-click{7,8}
mypy
build
skip_missing_interpreters = True
Expand All @@ -43,7 +47,9 @@ test =
py38-click{7,8}
py39-click{7,8}
py310-click{7,8}
py311-dev-click{7,8}
py311-click{7,8}
py312-click{7,8}
py313-dev-click{7,8}
qa = mypy, lint
cov = py38-click7, coverage

Expand All @@ -65,6 +71,16 @@ setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

[testenv:py313-dev]
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 Expand Up @@ -216,3 +232,13 @@ filterwarnings =
error
ignore:lib2to3 package is deprecated and may not be able to parse Python 3.10+:DeprecationWarning
ignore:lib2to3 package is deprecated and may not be able to parse Python 3.10+:PendingDeprecationWarning
[testenv:py312-click{7,8}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1
[testenv:py313-dev-click{7,8}]
setenv =
PYTHONDEVMODE=1
PIP_DISABLE_PIP_VERSION_CHECK=1

0 comments on commit 5cb694a

Please sign in to comment.