-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new version 4.0.6 * Added tests for pg3 postgis --------- Co-authored-by: Javier Cordero <[email protected]>
- Loading branch information
Showing
5 changed files
with
171 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: CI-psycopg2-gis | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
env: | ||
POSTGRES_USER: postgres | ||
PGPASSWORD: postgres | ||
runs-on: '${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: '3.8' | ||
django-version: '3.2.23' | ||
- os: ubuntu-latest | ||
python-version: '3.9' | ||
django-version: '3.2.23' | ||
- os: ubuntu-latest | ||
python-version: '3.10' | ||
django-version: '3.2.23' | ||
- os: ubuntu-latest | ||
python-version: '3.8' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.9' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.10' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.11' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.12' | ||
django-version: '4.2.9' | ||
services: | ||
postgres: | ||
image: postgis/postgis | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
- uses: actions/checkout@v4 | ||
- run: sudo apt-get install gdal-bin libgdal-dev | ||
- run: pip install django==${{ matrix.django-version}} | ||
- run: pip install psycopg2 | ||
- run: pip install psycogreen | ||
- run: pip install gevent | ||
- run: pip install gdal==3.4.1 | ||
- run: pip install . | ||
- run: python runtests_psycopg2_gis.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI-psycopg3-gis | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
env: | ||
POSTGRES_USER: postgres | ||
PGPASSWORD: postgres | ||
runs-on: '${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: '3.8' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.9' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.10' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.11' | ||
django-version: '4.2.9' | ||
- os: ubuntu-latest | ||
python-version: '3.12' | ||
django-version: '4.2.9' | ||
services: | ||
postgres: | ||
image: postgis/postgis | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
- uses: actions/checkout@v4 | ||
- run: sudo apt-get install gdal-bin libgdal-dev | ||
- run: pip install django==${{ matrix.django-version}} | ||
- run: pip install psycopg[binary] | ||
- run: pip install gevent | ||
- run: pip install gdal==3.4.1 | ||
- run: pip install . | ||
- run: python runtests_psycopg3_gis.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = 'v4.0.5' | ||
version = 'v4.0.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import gevent.monkey | ||
|
||
gevent.monkey.patch_all() | ||
|
||
import django | ||
from django.conf import settings | ||
from django.test.runner import DiscoverRunner | ||
|
||
|
||
settings.configure( | ||
DEBUG=True, | ||
DATABASES={ | ||
"default": { | ||
"ENGINE": "django_db_geventpool.backends.postgis", | ||
"NAME": "test", | ||
"USER": "postgres", | ||
"PASSWORD": "postgres", | ||
"ATOMIC_REQUESTS": False, | ||
"CONN_MAX_AGE": 0, | ||
"HOST": "localhost", | ||
} | ||
}, | ||
INSTALLED_APPS=( | ||
"tests", | ||
"django_db_geventpool", | ||
), | ||
USE_TZ=True, | ||
) | ||
django.setup() | ||
|
||
test_runner = DiscoverRunner(verbosity=2) | ||
|
||
failures = test_runner.run_tests(["tests"]) | ||
if failures: | ||
sys.exit(failures) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters