Skip to content

Commit

Permalink
Python 3.12 tests (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavr authored Jan 8, 2024
1 parent eb1adb4 commit bab1a49
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 23 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down

0 comments on commit bab1a49

Please sign in to comment.