File tree Expand file tree Collapse file tree 5 files changed +50
-32
lines changed
Expand file tree Collapse file tree 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 11django-model-utils == 2.3.1
22django-uuidfield == 0.5.0
33jsonfield == 1.0.3
4- Django >= 1.8
4+ Django >= 2.2 < 3.0
55simplesignals == 0.3.0
Original file line number Diff line number Diff line change 1717license = "BSD"
1818install_requires = [
1919 "jsonfield==2.0.2" ,
20- "Django>=1.7 " ,
20+ "Django>=2.2 " ,
2121 "simplesignals==0.3.0" ,
2222]
2323
@@ -84,4 +84,5 @@ def get_package_data(package):
8484 package_data = get_package_data (package ),
8585 install_requires = install_requires ,
8686 classifiers = [],
87+ python_requires = ">=3.6"
8788)
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ freezegun==0.3.12
44mock==3.0.5
55dj-database-url==0.5.0
66psycopg2==2.8.4
7+ black==19.10b0
You can’t perform that action at this time.
0 commit comments