From 68f4a96e479096c81dd430521e0042ace4418e14 Mon Sep 17 00:00:00 2001 From: matteogreek Date: Wed, 31 May 2023 16:18:08 +0200 Subject: [PATCH] fix python.yml --- .github/workflows/python.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5943bbeef..559036140 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -38,10 +38,22 @@ jobs: ports: # Maps tcp port 5432 on service container to the host - 5432:5432 - volumes: - - ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d + #volumes: + # - ${{ github.workspace }}/prospector/ddl:/docker-entrypoint-initdb.d steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 + - name: Install PostgreSQL client + run: | + sudo apt-get update + sudo apt-get install --yes postgresql-client + + - name: Set up Postgres tables + run: | + psql -h localhost -U postgres -d postgres -f prospector/ddl/10_commit.sql + psql -h localhost -U postgres -d postgres -f prospector/ddl/20_users.sql + env: + PGPASSWORD: example - name: Set up Python 3.10 uses: actions/setup-python@v4 with: