Add Python 3.10 tox env

This adds Python 3.10 to tox and github actions, and runs the non-test
tox envs (mypy, lint etc) with Python 3.10.

This change only adds the new env, and does not remove py37. For the
time being it might be worth supporting py37 while we can, along with
pypy which is only compatible with python 3.7.
master
mcol 2021-12-13 22:30:45 +03:00 committed by elParaguayo
parent bd21d0744e
commit 9253b96a33
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@ jobs:
matrix:
# if you change one of these, be sure to update
# /tox.ini:[gh-actions] as well
python-version: [pypy-3.7, 3.7, 3.8, 3.9]
python-version: [pypy-3.7, 3.7, 3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}

View File

@ -7,6 +7,7 @@ envlist =
py37,
py38,
py39,
py310,
docs,
pep8,
codestyle,
@ -110,4 +111,5 @@ python =
pypy-3.7: pypy3
3.7: py37
3.8: py38
3.9: py39, packaging, pep8, codestyle, docstyle, mypy, docs, vulture
3.9: py39
3.10: py310, packaging, pep8, codestyle, docstyle, mypy, docs, vulture