From 23536050c7f949e0d5a9caeb5f273771acb259e7 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Mon, 14 Dec 2020 12:42:01 +0200 Subject: [PATCH] Run tests on Python 3.9. --- .github/workflows/pythonapp.yml | 11 ++++++++--- tox.ini | 20 +++++++++++++++++++- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 4a724a1..44db911 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - name: + name: - "py27" - "py35" - "py36" @@ -59,6 +59,13 @@ jobs: use_coverage: false consul_version: "1.6.1" + - name: "py39" + python: "3.9" + os: ubuntu-latest + tox_env: "py39" + use_coverage: false + consul_version: "1.6.1" + - name: "pypy2" python: "pypy2" os: ubuntu-latest @@ -178,5 +185,3 @@ jobs: env_vars: OS,PYTHON name: codecov-umbrella fail_ci_if_error: true - - diff --git a/tox.ini b/tox.ini index 9b20d9b..4a64b71 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py35, py36, py37, py38, pypy2, pypy3 +envlist = py27, py35, py36, py37, py38, py39, pypy2, pypy3 [testenv] @@ -138,3 +138,21 @@ deps = commands = py.test --reruns=3 {posargs:consul tests} flake8 --exclude=".tox/*,xx/*,__*,docs/*,venv/*" + + +[testenv:py39] + +deps = + pytest + pytest-rerunfailures + pytest-twisted + twisted + treq + pytest_httpserver + pyOpenSSL + tornado + aiohttp + flake8 +commands = + py.test --reruns=3 {posargs:consul tests} + flake8 --exclude=".tox/*,xx/*,__*,docs/*,venv/*"