From 2d94eda08263650dcde31cf6c037632c4c20adb2 Mon Sep 17 00:00:00 2001 From: amandine-sahl Date: Mon, 30 Dec 2024 10:07:35 +0100 Subject: [PATCH] Test process sql --- .github/workflows/pytest.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1125407..8cefdff 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -94,7 +94,6 @@ jobs: geonature db autoupgrade -x local-srid=2154 - name: Install monitoring module database run: | - curl -fsSL https://raw.githubusercontent.com/PnX-SI/GeoNature/refs/heads/master/config/test_config.toml -o output.txt export GEONATURE_CONFIG_FILE=output.txt geonature upgrade-modules-db MONITORINGS @@ -105,9 +104,9 @@ jobs: mkdir -p /opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/media/monitorings/ cp -r * /opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/media/monitorings/ # Test install module - for protocole in ./*/; do geonature monitorings install $protocole; done + for protocole in ./*/; do echo install ${protocole}; geonature monitorings install $protocole > install.log; done # Test sql - for protocole in ./*/; do geonature monitorings process_sql $protocole|grep -i error|exit 1; done + for protocole in ./*/; do echo process_sql ${protocole}; geonature monitorings process_sql $protocole |grep -i error |exit 1; done