Skip to content

Commit

Permalink
Run tests with and without extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippluca committed Oct 2, 2024
1 parent 6be56c7 commit 9e04cef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/datamodel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
strategy:
matrix:
psycopg-version: [ 2, 3 ]
extension: ["", "agxx"]

fail-fast: true

steps:
Expand All @@ -43,7 +45,7 @@ jobs:
- name: Initialize container
run: |
docker run -d -p 5432:5432 --name teksi-wastewater teksi/wastewater:unstable
docker run -d -p 5432:5432 --name teksi-wastewater -e EXTENSION_NAMES=${{ matrix.extension }} teksi/wastewater:unstable
docker exec teksi-wastewater init_db.sh wait
- name: Run tests
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
fail-fast: false
matrix:
qgis_version: [3.34-jammy, latest]
extension: ["", "agxx"]
env:
QGIS_TEST_VERSION: ${{ matrix.qgis_version }}
COMPOSE_PROFILES: qgis
Expand Down Expand Up @@ -57,12 +58,16 @@ jobs:

- name: Clear Database
run: docker compose exec db init_db.sh build
env:
EXTENSION_NAMES: ${{ matrix.extension }}

- name: Test on QGIS DSS dataset
run: docker compose run qgis /usr/src/plugin/.docker/run-docker-tests.sh teksi_wastewater/tests/test_interlis.py::TestInterlis::test_dss_dataset_import_export

- name: Clear Database
run: docker compose exec db init_db.sh build
env:
EXTENSION_NAMES: ${{ matrix.extension }}

- name: Test command line import orgs
run: docker compose run qgis sh -c 'xvfb-run /usr/src/plugin/tww_cmd.py interlis_import --xtf_file /usr/src/plugin/teksi_wastewater/tests/data/minimal-dataset-organisation-arbon-only.xtf --pghost db --pgdatabase tww --pguser postgres --pgpass postgres --pgport 5432'
Expand Down

0 comments on commit 9e04cef

Please sign in to comment.