From 68513eda31967c78943ebae9037d4229d04832a7 Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Fri, 11 Oct 2024 12:09:47 +0200 Subject: [PATCH] change database setup in CI --- .github/workflows/pull_request.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index c6a5a51..35af45f 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -24,7 +24,9 @@ jobs: - uses: actions/checkout@v3 - name: Initialize database run: | - psql -h localhost -U postgres -d mainnet -f ${{ github.workspace }}/database/01_table_creation.sql + for file in ${{ github.workspace }}/database/*.sql; do + psql -h localhost -U postgres -d mainnet -f "$file" + done env: PGPASSWORD: postgres - name: Setup Python 3.12