Skip to content

Commit 7b28259

Browse files
authored
Run tests on python 3.11 also (RDFLib#1989)
Python 3.11 will be released soon, this enables running tests on the latest beta to confirm that everything works correctly. Other changes: - Change TOXENV setup in Taskfile so it works for version strings like `3.11.0-beta.4`. - Add a classifier for python 3.11
1 parent 7aba79a commit 7b28259

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
python-version: ["3.7", "3.8", "3.9", "3.10"]
22+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-beta.4"]
2323
os: [ubuntu-latest, macos-latest, windows-latest]
2424
include:
2525
- python-version: "3.7"

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ tasks:
9595
-m tox \
9696
{{.CLI_ARGS}}
9797
env:
98-
TOXENV: '{{if .TOX_PYTHON_VERSION}}py{{replace "." "" .TOX_PYTHON_VERSION}}{{if .EXTENSIVE}}-extensive{{end}}{{end}}'
98+
TOXENV: '{{if .TOX_PYTHON_VERSION}}py{{mustRegexReplaceAll "^([0-9]+)[.]([0-9]+).*" .TOX_PYTHON_VERSION "${1}${2}"}}{{if .EXTENSIVE}}-extensive{{end}}{{end}}'
9999
test:
100100
desc: Run tests
101101
cmds:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def open_local(paths, mode="r", encoding="utf8"):
8787
"Programming Language :: Python :: 3.8",
8888
"Programming Language :: Python :: 3.9",
8989
"Programming Language :: Python :: 3.10",
90+
"Programming Language :: Python :: 3.11",
9091
"License :: OSI Approved :: BSD License",
9192
"Topic :: Software Development :: Libraries :: Python Modules",
9293
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)