File tree Expand file tree Collapse file tree 9 files changed +78
-1121
lines changed Expand file tree Collapse file tree 9 files changed +78
-1121
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ tests :
13
+ name : ${{ matrix.database }} Python ${{ matrix.python-version }}
14
+ runs-on : ubuntu-18.04
15
+
16
+ strategy :
17
+ matrix :
18
+ python-version :
19
+ - 3.5
20
+ - 3.6
21
+ - 3.7
22
+ - 3.8
23
+ database :
24
+ - mysql:5.6
25
+ - mysql:5.7
26
+ # - mariadb:5.5
27
+ - mariadb:10.0
28
+ - mariadb:10.1
29
+ - mariadb:10.2
30
+ - mariadb:10.3
31
+ - mariadb:10.4
32
+
33
+ services :
34
+ database :
35
+ image : ${{ matrix.database }}
36
+ ports :
37
+ - 3306:3306
38
+ env :
39
+ MYSQL_ROOT_PASSWORD : hunter2
40
+
41
+ env :
42
+ DB_HOST : 127.0.0.1
43
+ DB_USER : root
44
+ DB_PASSWORD : hunter2
45
+ COVERALLS_REPO_TOKEN : 7l8yKtg4su0M31T0eGIaM0tnjvH0Rd5PM
46
+
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+ - uses : actions/setup-python@v1
50
+ with :
51
+ python-version : ${{ matrix.python-version }}
52
+ - uses : actions/cache@v1
53
+ with :
54
+ path : ~/.cache/pip
55
+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-pip-
58
+ - name : Upgrade packaging tools
59
+ run : python -m pip install --upgrade pip setuptools virtualenv
60
+ - name : Install percona-toolkit
61
+ run : sudo apt-get install -y percona-toolkit
62
+ - name : Install dependencies
63
+ run : python -m pip install --upgrade coveralls tox tox-gh-actions
64
+ - name : Run tox targets for ${{ matrix.python-version }}
65
+ run : python -m tox -- -x
66
+ - name : Upload coverage
67
+ run : |
68
+ coverage combine
69
+ coveralls --rcfile=setup.cfg
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ Django-MySQL
5
5
.. image :: https://img.shields.io/pypi/v/django-mysql.svg
6
6
:target: https://pypi.python.org/pypi/django-mysql
7
7
8
- .. image :: https://travis-ci.org /adamchainz/django-mysql.svg?branch=master
9
- :target: https://travis-ci.org /adamchainz/django-mysql
8
+ .. image :: https://github.com /adamchainz/django-mysql.svg?branch=master/actions?workflow=CI
9
+ :target: https://github.com /adamchainz/django-mysql/actions?workflow=CI
10
10
11
11
.. image :: https://coveralls.io/repos/adamchainz/django-mysql/badge.svg
12
12
:target: https://coveralls.io/r/adamchainz/django-mysql
Original file line number Diff line number Diff line change 219
219
],
220
220
check = True ,
221
221
)
222
- subprocess .run (
223
- [
224
- "python3.9" ,
225
- * common_args ,
226
- "-P" ,
227
- "Django>=2.2,<2.3" ,
228
- "-P" ,
229
- "mysqlclient>=1.3.13" ,
230
- "-o" ,
231
- "py39-django22.txt" ,
232
- ],
233
- check = True ,
234
- )
235
- subprocess .run (
236
- [
237
- "python3.9" ,
238
- * common_args ,
239
- "-P" ,
240
- "Django>=3.0a1,<3.1" ,
241
- "-P" ,
242
- "mysqlclient>=1.3.13" ,
243
- "-o" ,
244
- "py39-django30.txt" ,
245
- ],
246
- check = True ,
247
- )
You can’t perform that action at this time.
0 commit comments