diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c858141..ed9224f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -154,6 +154,14 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' working-directory: ${{env.WORKDIR}} run: pip install -r requirements-dev.txt + - name: Setup database + if: steps.cache.outputs.cache-hit != 'true' + run: | + PGPASSWORD=${{ needs.load-dotenv.outputs.postgres-password }} \ + psql -h localhost \ + -p ${{ needs.load-dotenv.outputs.postgres-port }} \ + -U ${{ needs.load-dotenv.outputs.postgres-username }} \ + -tc "$(cat database/assets/create_records_table.sql)" - name: Run tests if: steps.cache.outputs.cache-hit != 'true' run: |