Skip to content

Commit

Permalink
add recent python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Aug 4, 2023
1 parent c043818 commit 9eceb4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,30 @@ addons:

matrix:
include:
- python: 3.9
- python: 3.11
env: TOXENV=lint
- python: 3.9
- python: 3.11
env: TOXENV=cover
- python: 3.7
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 3.9
env: TOXENV=py39
- python: 3.10
env: TOXENV=py310
- python: 3.11
env: TOXENV=py311
- python: 3.7
env: TOXENV=py37-uvloop
- python: 3.8
env: TOXENV=py38-uvloop
- python: 3.9
env: TOXENV=py39-uvloop
- python: 3.10
env: TOXENV=py310-uvloop
- python: 3.11
env: TOXENV=py311-uvloop
install:
- "sudo -H env PYTHON=\"$(command -v python)\" tests/install.debian.sh"
script:
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[tox]
envlist = py{37,38,39}, py{37,38,39}-uvloop, lint, cover
envlist = py{37,38,39,310,311}, py{37,38,39,310,311}-uvloop, lint, cover
skipsdist = true

[testenv]
passenv = TOXENV
commands =
py{37,38,39}: pip install -e '.[dev,sqlite,redis,postgres]'
py{37,38,39}-uvloop: pip install -e '.[dev,sqlite,redis,postgres,uvloop]'
py{37,38,39,310,311}: pip install -e '.[dev,sqlite,redis,postgres]'
py{37,38,39,310,311}-uvloop: pip install -e '.[dev,sqlite,redis,postgres,uvloop]'
pytest .

[testenv:lint]
basepython = python3.9
basepython = python3.11
commands =
pip install -e '.[dev,sqlite,redis]'
pylint --reports=n --rcfile=.pylintrc postfix_mta_sts_resolver

[testenv:cover]
passenv = TOXENV
basepython = python3.9
basepython = python3.11
commands =
pip install -e ".[dev,sqlite,redis,postgres]"
pytest --cov . --cov-append --cov-report= .
Expand Down

0 comments on commit 9eceb4c

Please sign in to comment.