Skip to content

Commit

Permalink
Add py3.10 and py3.11 to travis/tox/setup.py (#203)
Browse files Browse the repository at this point in the history
also pin tox to <4 for tox-travis compatibility
see tox-dev/tox-travis#159
  • Loading branch information
i-trofimtschuk authored Dec 20, 2022
1 parent e5c4a16 commit 86943f2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
language: python
os: linux
dist: "bionic"
dist: "focal"
services:
- redis
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
install:
- pip install tox-travis
- pip install tox-travis 'tox<4' # incompatible with tox>=4
- pip install coveralls
script:
- tox
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ def get_long_description():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
)
2 changes: 1 addition & 1 deletion tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def as_dict(task):
assert task.error_message is None

for i in range(5):
store = random.sample(fields, 7)
store = random.sample(sorted(fields), 7)
copy = Task.fetch(task.id)
randomize_data(copy)
copy._save(store)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def as_dict(worker):
assert as_dict(Worker.fetch(worker.id)) == as_dict(worker)

for i in range(5):
store = random.sample(fields, 3)
store = random.sample(sorted(fields), 3)
copy = Worker.fetch(worker.id)
randomize_data(copy)
copy._save(store)
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,flake8
envlist = py37,py38,py39,py310,py311,flake8

[testenv]
deps = -rrequirements.txt
Expand Down Expand Up @@ -33,3 +33,5 @@ python =
3.7: py37,flake8
3.8: py38
3.9: py39
3.10: py310
3.11: py311

0 comments on commit 86943f2

Please sign in to comment.