Skip to content

Commit

Permalink
Correction github action process sql exit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Dec 30, 2024
1 parent 3837cfb commit 8cd07d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ 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
echo "Test install modules"
for protocole in ./*/; do echo install ${protocole}; geonature monitorings install $protocole > install.log; done
# Test sql
for protocole in ./*/; do echo process_sql ${protocole}; geonature monitorings process_sql $protocole |grep -i error && exit 1; done
echo "Test process_sql modules"
for protocole in ./*/; do echo process_sql ${protocole}; geonature monitorings process_sql $protocole |grep -i error && exit 1 || echo "OK" ; done
2 changes: 1 addition & 1 deletion nidif_gypa/synthese.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SELECT 1;

-- Résoulution impossible manque la table comportement_mapping ??
-- Résolution impossible manque la table comportement_mapping ??

-- CREATE OR REPLACE VIEW gn_monitoring.v_synthese_nidif_gypa
-- AS WITH source AS (
Expand Down

0 comments on commit 8cd07d4

Please sign in to comment.