File tree 3 files changed +23
-19
lines changed
3 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,17 @@ on: [push, pull_request]
5
5
6
6
jobs :
7
7
build :
8
- name : build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
8
+ name : |
9
+ build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}, ${{ matrix.database-engine }})
9
10
runs-on : ubuntu-latest
10
11
11
12
strategy :
12
13
fail-fast : false
13
14
matrix :
14
- python-version : ['3.11', '3.12']
15
- django-version : ['4.2', '5.0', 'dev']
15
+ python-version : ['3.12']
16
+ django-version : ['4.2', '5.1', 'dev']
17
+ database-engine : ["mysql", "postgres"]
16
18
17
- exclude :
18
- - python-version : ' 3.12'
19
- django-version : ' 4.2'
20
- - python-version : ' 3.11'
21
- django-version : ' dev'
22
19
services :
23
20
mysql :
24
21
image : mysql:latest
28
25
ports :
29
26
- 3306:3306
30
27
options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
28
+ postgres :
29
+ image : postgres:latest
30
+ env :
31
+ POSTGRES_PASSWORD : postgres
32
+ options : >-
33
+ --health-cmd pg_isready
34
+ --health-interval 10s
35
+ --health-timeout 5s
36
+ --health-retries 5
37
+ ports :
38
+ - 5432:5432
31
39
32
40
steps :
33
41
- name : Install pycups and words dependency
61
69
python -m pip install --upgrade pip
62
70
python -m pip install -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/tox.txt
63
71
64
-
65
72
- name : Tox tests
66
73
run : |
67
74
tox -v
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ version_file="_version.py"
6
6
7
7
[tool .black ]
8
8
line-length = 95
9
- target-version = [" py311 " ]
9
+ target-version = [" py312 " ]
10
10
extend-exclude = ''' ^(.*\/)*\b(migrations)\b($|\/.*$)'''
11
11
12
12
[tool .isort ]
13
13
profile = " black"
14
- py_version = " 311 "
14
+ py_version = " 312 "
15
15
skip = [" .tox" , " .eggs" , " migrations" ]
16
16
17
17
[tool .coverage .run ]
@@ -35,21 +35,19 @@ exclude_lines = [
35
35
legacy_tox_ini = """
36
36
[tox]
37
37
envlist =
38
- py{311}-dj{42,50},
39
- py{312}-dj{50,dev},
38
+ py{312}-dj{42,51,dev},
40
39
lint
41
40
42
41
isolated_build = true
43
42
44
43
[gh-actions]
45
44
python =
46
- 3.11: py311
47
45
3.12: py312, lint
48
46
49
47
[gh-actions:env]
50
48
DJANGO =
51
49
4.2: dj42
52
- 5.0: dj50
50
+ 5.1: dj51
53
51
dev: djdev, lint
54
52
55
53
[testenv]
59
57
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/edc.txt
60
58
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/third_party_dev.txt
61
59
dj42: Django>=4.2,<5.0
62
- dj50 : Django>=5.0
60
+ dj51 : Django>=5.1,<5.2
63
61
djdev: https://github.com/django/django/tarball/main
64
62
65
63
commands =
Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ classifiers=
13
13
Environment :: Web Environment
14
14
Framework :: Django
15
15
Framework :: Django :: 4.2
16
+ Framework :: Django :: 5.1
16
17
Intended Audience :: Developers
17
18
Intended Audience :: Science/Research
18
19
Operating System :: OS Independent
19
- Programming Language :: Python :: 3.11
20
20
Programming Language :: Python :: 3.12
21
21
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
22
22
23
-
24
23
[options]
25
- python_requires = >=3.11
24
+ python_requires = >=3.12
26
25
zip_safe = False
27
26
include_package_data = True
28
27
packages = find:
You can’t perform that action at this time.
0 commit comments