File tree 5 files changed +50
-32
lines changed
5 files changed +50
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ubuntu-18.04
9
+
10
+ strategy :
11
+ matrix :
12
+ python : [3.6, 3.7, 3.8]
13
+ django : [2.2]
14
+ database_url :
15
+ - postgres://runner:password@localhost/project
16
+ -
mysql://root:[email protected] /project
17
+
18
+ services :
19
+ postgres :
20
+ image : postgres:11
21
+ ports :
22
+ - 5432:5432
23
+ env :
24
+ POSTGRES_DB : project
25
+ POSTGRES_USER : runner
26
+ POSTGRES_PASSWORD : password
27
+
28
+ env :
29
+ DATABASE_URL : ${{ matrix.database_url }}
30
+
31
+ steps :
32
+ - name : Start MySQL
33
+ run : sudo systemctl start mysql.service
34
+ - uses : actions/checkout@v2
35
+ - name : Set up Python ${{ matrix.python }}
36
+ uses : actions/setup-python@v2
37
+ with :
38
+ python-version : ${{ matrix.python }}
39
+ - name : Install dependencies
40
+ run : pip install -r test-requirements.txt
41
+ - name : Install Django
42
+ run : pip install -U django==${{ matrix.django }}
43
+ - name : Run tests
44
+ run : python manage.py test
45
+ - name : Run black
46
+ run : black --check django_dbq
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
django-model-utils == 2.3.1
2
2
django-uuidfield == 0.5.0
3
3
jsonfield == 1.0.3
4
- Django >= 1.8
4
+ Django >= 2.2 < 3.0
5
5
simplesignals == 0.3.0
Original file line number Diff line number Diff line change 17
17
license = "BSD"
18
18
install_requires = [
19
19
"jsonfield==2.0.2" ,
20
- "Django>=1.7 " ,
20
+ "Django>=2.2 " ,
21
21
"simplesignals==0.3.0" ,
22
22
]
23
23
@@ -84,4 +84,5 @@ def get_package_data(package):
84
84
package_data = get_package_data (package ),
85
85
install_requires = install_requires ,
86
86
classifiers = [],
87
+ python_requires = ">=3.6"
87
88
)
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ freezegun==0.3.12
4
4
mock==3.0.5
5
5
dj-database-url==0.5.0
6
6
psycopg2==2.8.4
7
+ black==19.10b0
You can’t perform that action at this time.
0 commit comments