Skip to content

Commit

Permalink
fix the ci/pr
Browse files Browse the repository at this point in the history
  • Loading branch information
rmassei committed Feb 14, 2025
1 parent d068b0a commit 84aacc7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/lambdaminer/data/test_data/location.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- SPDX-FileCopyrightText: 2024 Helmholtz Centre for Environmental Research GmbH - UFZ
--
-- SPDX-License-Identifier: LicenseRef-UFZ-GPL-3.0-or-later

--
-- Data for Name: location; Type: TABLE DATA; Schema: public; Owner: lmdb_adm
--

INSERT INTO public.location (location_id, height, latitude, longitude, country, state, zipcode, site_description) VALUES (1, 12.000000, 51.340199, 12.360103, 'Germany', 'Sachsen', '04318', 'Leipzig');
INSERT INTO public.location (location_id, height, latitude, longitude, country, state, zipcode, site_description) VALUES (2, NULL, 51.867139, 10.870583, 'Germany', 'Sachsen-Anhalt', '38855', 'Holtemme, downstream of WWTP Silstedt');
INSERT INTO public.location (location_id, height, latitude, longitude, country, state, zipcode, site_description) VALUES (3, NULL, 29.288333, -83.165833, 'USA', 'Florida', '4131', 'Dummy Site Description for SRFA');
INSERT INTO public.location (location_id, height, latitude, longitude, country, state, zipcode, site_description) VALUES (5, NULL, 29.288333, -83.165833, 'USA', 'Florida', '4131', 'Test Site Description');

--
-- Name: location_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: lmdb_adm
--

SELECT pg_catalog.setval('public.location_location_id_seq', 5, true);
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,13 @@ jobs:
# Set up the lambda-miner database
- name: Create a database in the postgres for lambda-miner
run: |
PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE lambda_miner;"
PGPASSWORD=postgres psql -h localhost -U postgres -d lambda_miner -q -f ./.github/lambdaminer/build.sql
PGPASSWORD=postgres psql -h localhost -U postgres -d lambda_miner -c "SELECT * FROM public.instrument;"
PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE lmdb;"
- name: Build the lambda-miner and run a test
run: |
PGPASSWORD=postgres psql -h localhost -U postgres -d lmdb -q -f ./.github/lambdaminer/build.sql
sleep 10
PGPASSWORD=postgres psql -h localhost -U postgres -d lmdb -c "SELECT * FROM public.instrument;"
# Start OMERO
- name: Start OMERO
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,16 @@ jobs:
singularity pull --dir /tmp docker://rocker/tidyverse
fi
# Set up the lambda-miner database
# Set up the lambda-miner database
- name: Create a database in the postgres for lambda-miner
run: |
PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE lambda_miner;"
PGPASSWORD=postgres psql -h localhost -U postgres -d lambda_miner -q -f ./.github/lambdaminer/build.sql
PGPASSWORD=postgres psql -h localhost -U postgres -d lambda_miner -c "SELECT * FROM public.instrument;"
PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE lmdb;"
- name: Build the lambda-miner and run a test
run: |
PGPASSWORD=postgres psql -h localhost -U postgres -d lmdb -q -f ./.github/lambdaminer/build.sql
sleep 10
PGPASSWORD=postgres psql -h localhost -U postgres -d lmdb -c "SELECT * FROM public.instrument;"
# Start OMERO
- name: Start OMERO
Expand Down

0 comments on commit 84aacc7

Please sign in to comment.