From bab1a49e22b7fdaa9e3cb1bd52102a63b4639af8 Mon Sep 17 00:00:00 2001 From: Sergey Lavrinenko Date: Mon, 8 Jan 2024 21:09:17 +0300 Subject: [PATCH] Python 3.12 tests (#169) --- .github/workflows/tests.yaml | 7 +++++-- tox.ini | 25 +++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 871bb40..16ed35e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -16,10 +16,13 @@ jobs: fail-fast: false matrix: include: + - {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312} + - {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} + - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} + - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - - {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36} - - {name: '2.7', python: '2.7', os: ubuntu-16.04, tox: py27} + - {name: '3.6', python: '3.6', os: ubuntu-20.04, tox: py36} services: postfix: image: lavr/docker-postfix diff --git a/tox.ini b/tox.ini index 03c560b..624de47 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] -envlist = py27, py34, py35, py36, py37, py38, pypy, style +envlist = py27, py34, py35, py36, py37, py38, py39, py310, py311, py312, py313, pypy, style [testenv] -passenv = TEST_* SMTP_TEST_* +passenv = TEST_*,SMTP_TEST_* commands = py.test --cov-report term --cov-report html --cov emails {posargs} [testenv:pypy] @@ -29,6 +29,27 @@ deps = deps = -rrequirements/tests.txt +[testenv:py39] +deps = + -rrequirements/tests.txt + +[testenv:py310] +deps = + -rrequirements/tests.txt + +[testenv:py311] +deps = + -rrequirements/tests.txt + +[testenv:py312] +deps = + -rrequirements/tests.txt + +[testenv:py313] +deps = + -rrequirements/tests.txt + + [testenv:style] deps = pre-commit skip_install = true