Commit 6fd5f6d 1 parent a01dd5e commit 6fd5f6d Copy full SHA for 6fd5f6d
File tree 3 files changed +13
-60
lines changed
3 files changed +13
-60
lines changed Original file line number Diff line number Diff line change 3
3
python : circleci/python@1.5.0
4
4
5
5
jobs :
6
- build-and-test-py-27 -django-1-8 :
6
+ build-and-test-py-311 -django-4-1 :
7
7
docker :
8
- - image : cimg/python:3.9 .0
8
+ - image : cimg/python:3.11 .0
9
9
steps :
10
10
- checkout
11
11
- python/install-packages :
12
12
pkg-manager : pip
13
13
- run :
14
14
name : Run tests
15
- command : pip install tox && tox -e py27-django1.8
16
- build-and-test-py-27-django-1-11 :
17
- docker :
18
- - image : cimg/python:3.9.0
19
- steps :
20
- - checkout
21
- - python/install-packages :
22
- pkg-manager : pip
23
- - run :
24
- name : Run tests
25
- command : pip install tox && tox -e py27-django1.11
26
- build-and-test-py-39-django-2-1 :
27
- docker :
28
- - image : cimg/python:3.9.0
29
- steps :
30
- - checkout
31
- - python/install-packages :
32
- pkg-manager : pip
33
- - run :
34
- name : Run tests
35
- command : pip install tox && tox -e py39-django2.1
15
+ command : pip install tox && tox -e py311-django4.1
36
16
workflows :
37
17
sample :
38
18
jobs :
39
- - build-and-test-py-27-django-1-8
40
- - build-and-test-py-27-django-1-11
41
- - build-and-test-py-39-django-2-1
19
+ - build-and-test-py-311-django-4-1
Original file line number Diff line number Diff line change 26
26
# SECURITY WARNING: don't run with debug turned on in production!
27
27
DEBUG = True
28
28
29
- ALLOWED_HOSTS = []
29
+ ALLOWED_HOSTS = ['testserver' ]
30
30
31
31
32
32
# Application definition
111
111
112
112
USE_I18N = True
113
113
114
- USE_L10N = True
115
-
116
114
USE_TZ = True
117
115
118
116
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
- py27-django1.8,
4
- py27-django1.11,
5
- py39-django2.1
6
-
7
- [django1.8]
8
- deps =
9
- Django>=1.8,<1.9
10
-
11
- [django1.11]
12
- deps =
13
- Django>=1.11,<2.0
14
-
15
- [django2.1]
16
- deps =
17
- Django>=2.1,<2.2
3
+ py311-django4.1
18
4
19
5
[testenv]
20
6
passenv =
@@ -30,20 +16,11 @@ passenv =
30
16
LNM_PHONE_NUMBER
31
17
B2C_PHONE_NUMBER
32
18
33
- commands =
34
- python {toxinidir}/setup.py test
35
-
36
- [testenv:py27-django1.8]
37
- basepython = python2.7
38
- deps =
39
- {[django1.8]deps}
40
-
41
- [testenv:py27-django1.11]
42
- basepython = python2.7
43
- deps =
44
- {[django1.11]deps}
45
-
46
- [testenv:py39-django2.1]
47
- basepython = python3.9
19
+ [testenv:py311-django4.1]
20
+ description = Use Python 3.11 and Django 4.1 in a virtual environment and run tests against it.
21
+ basepython = python3.11
48
22
deps =
49
- {[django2.1]deps}
23
+ Django>=4.1,<4.2
24
+ pytest-django>=4
25
+ pytest-sugar
26
+ commands = pytest tests {posargs}
You can’t perform that action at this time.
0 commit comments