From d3a80ce733d72c46984631e5d8e7f690c5a71bf0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 1 Jan 2021 19:54:25 +0300 Subject: [PATCH] Test,CI: Run tests with Python 3.9 --- .travis.yml | 6 ++++-- appveyor.yml | 10 ++++++++++ tox.ini | 13 +++++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5d0574..3cac068 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,12 @@ matrix: env: TOXENV=py37 - python: "3.8" env: TOXENV=py38 + - python: "3.9" + env: TOXENV=py39 - python: "2.7" env: TOXENV=py27-flake8 - - python: "3.8" - env: TOXENV=py38-flake8 + - python: "3.9" + env: TOXENV=py39-flake8 install: - travis_retry pip install --upgrade "pip<21" "setuptools<44" tox ppu diff --git a/appveyor.yml b/appveyor.yml index 9cd4abd..da97b07 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,8 @@ # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo) version: '{branch}-{build}' +image: Visual Studio 2019 + cache: - '%LOCALAPPDATA%\pip\Cache' @@ -43,6 +45,14 @@ environment: PYTHON_VERSION: "3.8" PYTHON_ARCH: "64" PYTHON_HOME: "C:\\Python38-x64" + - TOXENV: "py39-sqlite-w32" + PYTHON_VERSION: "3.9" + PYTHON_ARCH: "32" + PYTHON_HOME: "C:\\Python39" + - TOXENV: "py39-sqlite-w32" + PYTHON_VERSION: "3.9" + PYTHON_ARCH: "64" + PYTHON_HOME: "C:\\Python39-x64" install: # Ensure we use the right python version diff --git a/tox.ini b/tox.ini index 8fd3250..df44464 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py27,py3{4,5,6,7,8},py{27,38}-flake8 +envlist = py27,py3{4,5,6,7,8,9},py{27,39}-flake8 # Base test environment settings [testenv] @@ -11,6 +11,7 @@ basepython = py36: {env:TOXPYTHON:python3.6} py37: {env:TOXPYTHON:python3.7} py38: {env:TOXPYTHON:python3.8} + py39: {env:TOXPYTHON:python3.9} commands = {envpython} --version {envpython} -c "import struct; print(struct.calcsize('P') * 8)" @@ -43,6 +44,9 @@ commands = {[general]commands} [testenv:py38] commands = {[general]commands} +[testenv:py39] +commands = {[general]commands} + [sqlite-w32] platform = win32 commands = @@ -77,6 +81,11 @@ platform = win32 commands = {[sqlite-w32]commands} +[testenv:py39-sqlite-w32] +platform = win32 +commands = + {[sqlite-w32]commands} + # flake8 [testenv:py27-flake8] deps = @@ -85,7 +94,7 @@ commands = {[testenv]commands} flake8 -[testenv:py38-flake8] +[testenv:py39-flake8] deps = flake8 commands = -- 2.39.2