Test with Python 3.11 (currently in beta)

This commit is contained in:
Joshua Bronson 2022-06-01 21:44:36 +00:00
parent f31a6f88f3
commit 84824af891
3 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@ jobs:
include:
# See the following link for all available Python versions:
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
- {name: '3.11-beta', python: '3.11.0-beta.2', tox: py311} # remove workaround from pytest.ini once on beta3+
- {name: '3.10', python: '3.10', tox: py310}
- {name: '3.9', python: '3.9', tox: py39}
- {name: '3.8', python: '3.8', tox: py38}

View File

@ -7,6 +7,8 @@ addopts =
--verbose
--doctest-modules
--doctest-glob=tests/*.txt
# workaround for Python 3.11 beta, see https://github.com/pytest-dev/pytest/issues/10008#issuecomment-1142722627
--assert=plain
# pytest-doctest is missing too many features to use for the doctests in the Sphinx docs
# (e.g. still no skipif support: https://github.com/thisch/pytest-sphinx/issues/9),

View File

@ -1,6 +1,6 @@
[tox]
envlist =
py3{10,9,8,7}
py3{11,10,9,8,7}
pypy3{9,8,7}
lint
docs