Skip to content

Commit 4a25fc2

Browse files
authored
Merge pull request #316 from UsamaSadiq/add-python38-and-django32-tests
build: Add django 3.2 tests with python 3.6 and python 3.8
2 parents 0dabc7c + 5bcc995 commit 4a25fc2

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,17 @@ matrix:
5757
- python: 3.6
5858
env: TOXENV=py36-django22LTS
5959
- python: 3.6
60-
env: TOXENV=py36-django31
60+
env: TOXENV=py36-django30
6161
- python: 3.6
6262
env: TOXENV=py36-django31
63+
- python: 3.6
64+
env: TOXENV=py36-django32
65+
- python: 3.8
66+
env: TOXENV=py38-django30
67+
- python: 3.8
68+
env: TOXENV=py38-django31
69+
- python: 3.8
70+
env: TOXENV=py38-django32
6371
script:
6472
- docker build -t algoliasearch_django .
6573
- docker run -it --rm --env ALGOLIA_APPLICATION_ID --env ALGOLIA_API_KEY --env ALGOLIA_SEARCH_API_KEY --env TOXENV -v $PWD:/code -w /code algoliasearch_django tox

algoliasearch_django/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def _should_really_index(self, instance):
260260
# noinspection PyDeprecation
261261
count_args = len(inspect.getargspec(self.should_index).args)
262262

263-
if is_method or count_args is 1:
263+
if is_method or count_args == 1:
264264
# bound method, call with instance
265265
return self.should_index(instance)
266266
else:

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ envlist =
88
{py34,py35,py36}-django20
99
{py34,py35,py36}-django21
1010
{py34,py35,py36}-django22LTS
11-
{py34,py35,py36}-django30
12-
{py34,py35,py36}-django31
11+
{py34,py35,py36,py38}-django30
12+
{py34,py35,py36,py38}-django31
13+
{py36,py38}-django32
1314
coverage
1415
skip_missing_interpreters = True
1516

@@ -29,6 +30,7 @@ deps =
2930
django22LTS: Django>=2.2,<3.0
3031
django30: Django>=3.0,<3.1
3132
django31: Django>=3.1,<3.2
33+
django32: Django>=3.2,<3.3
3234
passenv =
3335
ALGOLIA*
3436
TRAVIS*

0 commit comments

Comments
 (0)