Add python 3.11 to CI (#587)

pull/564/head
Matthieu Darbois 3 months ago committed by GitHub
parent cb21fc7b9e
commit 8c6a45e208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .github/workflows/test.yml
  2. 4
      noxfile.py
  3. 1
      setup.py

@ -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

@ -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)

@ -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",
],

Loading…
Cancel
Save