File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Django CI
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ max-parallel : 4
10+ matrix :
11+ python-version : ['3.12']
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Setup PostgreSQL with Postgis
16+ 17+ with :
18+ database : vbos
19+ id : postgres
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v2
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+ - name : Install Dependencies
25+ run : |
26+ sudo apt-get update -qq -y
27+ sudo apt-get install -y binutils libproj-dev python3-gdal libgeos-dev libyaml-dev
28+ python -m pip install --upgrade pip
29+ pip install -r requirements.txt
30+ - name : Run Tests
31+ run : |
32+ coverage run manage.py test --settings=vbos.config.local
33+ env :
34+ DATABASE_URL : ${{ secrets.DATABASE_URL }}
35+ DJANGO_SECRET_KEY : ${{ secrets.DJANGO_SECRET_KEY }}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Common(Configuration):
5151 # Postgres
5252 DATABASES = {
5353 'default' : dj_database_url .config (
54- default = 'postgres ://postgres:@postgres:5432/vbos' ,
54+ default = 'postgis ://postgres:@postgres:5432/vbos' ,
5555 conn_max_age = int (os .getenv ('POSTGRES_CONN_MAX_AGE' , 600 ))
5656 )
5757 }
You can’t perform that action at this time.
0 commit comments