Skip to content

Commit

Permalink
Init database
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-au-922 committed Dec 2, 2023
1 parent c2ccbf4 commit c446ac2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c446ac2

Please sign in to comment.