qwat / qwat-data-model

TEKSI Water module (project QWAT) - PostgreSQL / postgis Datamodel
https://www.teksi.ch
23 stars 24 forks source link
plpgsql postgis postgresql qgis

qwat-data-model

Build Status

This repository contains the definition of the data model used by QWAT project, a module aimed at managing a water network in QGIS.

A full web data model documentation with diagrams and relations is available here.

Model changelog (Detailed)

Release

Realeases are made using github actions when a new release is created. The tag must be of format x.y.z.

Tests

Tests are run automatically on commit by github actions.

To run them locally (please refer to run_tests.yml for up to date steps):

# start a dev postgis server
docker run --rm -d -p 5432:5432 -e POSTGRES_DB=qwat_test -e POSTGRES_PASSWORD=postgres --name=qwat_test_db postgis/postgis:9.6-2.5

# include the pgservices for test database
cat ./tests/pg_service.conf >> ~/.pg_service.conf

# install dependencies
pip install -r requirements.txt

# run tests
tests/tests.sh