From dbc69e76cf829836e5c65ee4219d7f123fcc69ff Mon Sep 17 00:00:00 2001 From: Amal Shaji Date: Wed, 16 Feb 2022 19:56:33 +0530 Subject: [PATCH] Added testing for Python 3.10 (#1470) Co-authored-by: Carlton Gibson --- .github/workflows/tests.yml | 6 +++--- setup.py | 1 + tox.ini | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e52a20ca..7b5078e0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 @@ -21,12 +21,12 @@ jobs: python -m pip install --upgrade pip setuptools - name: Install dependencies run: | - python -m pip install coverage tox tox-factor unittest-xml-reporting + python -m pip install coverage tox tox-py unittest-xml-reporting - name: Run tox run: | python -m pip --version python -m tox --version - python -m tox -f py$(python --version 2>&1 | cut -c 8,10) + python -m tox --py current - name: Coverage reporting run: | coverage combine diff --git a/setup.py b/setup.py index 53558327..0b92ff47 100644 --- a/setup.py +++ b/setup.py @@ -62,6 +62,7 @@ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ], zip_safe=False, python_requires='>=3.6', diff --git a/tox.ini b/tox.ini index 9c8c7704..50511278 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = {py36,py37}-django22, - {py36,py37,py38,py39}-{django31,django32}, - {py38,py39}-{django40,latest}, + {py36,py37,py38,py39,py310}-{django31,django32}, + {py38,py39,py310}-{django40,latest}, isort,lint,docs,warnings,