abdullah090809 commited on
Commit
8ddc1d0
·
1 Parent(s): 92de720

Updated yml file to add create test db

Browse files
Files changed (1) hide show
  1. .github/workflows/build-deploy.yml +6 -0
.github/workflows/build-deploy.yml CHANGED
@@ -56,5 +56,11 @@ jobs:
56
  env:
57
  PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
58
 
 
 
 
 
 
 
59
  - name: Run tests
60
  run: pytest
 
56
  env:
57
  PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
58
 
59
+ - name: Create test database
60
+ run: |
61
+ psql -h localhost -U ${{ secrets.DATABASE_USERNAME }} -d postgres -c "CREATE DATABASE ${{ secrets.DATABASE_NAME }}_test;"
62
+ env:
63
+ PGPASSWORD: ${{ secrets.DATABASE_PASSWORD }}
64
+
65
  - name: Run tests
66
  run: pytest