File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,21 @@ on: pull_request
5
5
jobs :
6
6
unit-tests :
7
7
runs-on : ubuntu-latest
8
+
8
9
strategy :
9
10
matrix :
10
11
python-version : [3.7, 3.8]
11
12
django-version : [2.1, 2.2]
13
+
14
+ services :
15
+ postgres :
16
+ image : postgres
17
+ ports : ["5432:5432"]
18
+
19
+ env :
20
+ POSTGRES_PASSWORD : postgres
21
+ POSTGRES_DB : django-cursor-pagination
22
+
12
23
steps :
13
24
- uses : actions/checkout@v2
14
25
- name : Set up Python
19
30
run : pip install django==${{ matrix.django-version }}
20
31
- run : pip install psycopg2
21
32
- run : pip install -e .
22
- - run : psql -c 'CREATE DATABASE "django-cursor-pagination"' -U postgres;
23
33
- run : python runtests.py
Original file line number Diff line number Diff line change 2
2
'default' : {
3
3
'ENGINE' : 'django.db.backends.postgresql_psycopg2' ,
4
4
'NAME' : 'django-cursor-pagination' ,
5
+ 'USER' : 'postgres' ,
6
+ 'PASSWORD' : 'postgres' ,
7
+ 'HOST' : 'localhost' ,
8
+ 'PORT' : '5432' ,
5
9
}
6
10
}
7
11
You can’t perform that action at this time.
0 commit comments