Add python 3.11 to CI (#587)

This commit is contained in:
Matthieu Darbois 2022-08-30 01:08:58 +02:00 committed by GitHub
parent cb21fc7b9e
commit 8c6a45e208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -23,7 +23,7 @@ jobs:
matrix:
os: [Ubuntu, Windows, macOS]
python_version:
["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"]
["3.7", "3.8", "3.9", "3.10", "3.11-dev", "pypy3.7", "pypy3.8", "pypy3.9"]
steps:
- uses: actions/checkout@v3
@ -35,4 +35,9 @@ jobs:
cache: "pip"
- name: Run nox
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
run: |
# Need to remove "-dev" suffix
INTERPRETER=${{ matrix.python_version }}
INTERPRETER=${INTERPRETER/-dev/}
pipx run nox --error-on-missing-interpreters -s tests-${INTERPRETER}
shell: bash

View File

@ -21,7 +21,9 @@ nox.options.sessions = ["lint"]
nox.options.reuse_existing_virtualenvs = True
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"])
@nox.session(
python=["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9"]
)
def tests(session):
def coverage(*args):
session.run("python", "-m", "coverage", *args)

View File

@ -60,6 +60,7 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],