Skip to content

PYTHON-1362 updated travis config to use current python versions #1176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
dist: xenial
dist: bionic
sudo: false

language: python
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"

env:
- CASS_DRIVER_NO_CYTHON=1
Expand All @@ -21,8 +23,7 @@ addons:

install:
- pip install --upgrade setuptools importlib-metadata
- pip install tox-travis
- if [[ $TRAVIS_PYTHON_VERSION != pypy3.5 ]]; then pip install lz4; fi
- pip install tox-travis lz4

script:
- tox
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-r requirements.txt
scales
nose
pynose
mock>1.1
ccm>=2.1.2
pytz
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
envlist = py{37,38},pypy
envlist = py{38,39,310,311},pypy

[base]
deps = nose
pynose
mock<=1.0.1
six
packaging
Expand All @@ -14,7 +15,7 @@ deps = nose
futurist
greenlet>=0.4.14,<0.4.17
cryptography>=35.0
lz4_dependency = py37,py38: lz4
lz4_dependency = py38,39,310,311: lz4

[testenv]
deps = {[base]deps}
Expand All @@ -24,7 +25,7 @@ setenv = LIBEV_EMBED=0
CARES_EMBED=0
LC_ALL=en_US.UTF-8
changedir = {envtmpdir}
commands = nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/
commands = pynose --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/


[testenv:gevent_loop]
Expand All @@ -37,7 +38,7 @@ setenv = LIBEV_EMBED=0
EVENT_LOOP_MANAGER=gevent
changedir = {envtmpdir}
commands =
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py
pynose --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_geventreactor.py


[testenv:eventlet_loop]
Expand All @@ -50,4 +51,4 @@ setenv = LIBEV_EMBED=0
EVENT_LOOP_MANAGER=eventlet
changedir = {envtmpdir}
commands =
nosetests --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py
pynose --verbosity=2 --no-path-adjustment {toxinidir}/tests/unit/io/test_eventletreactor.py