Spaces:
Runtime error
Runtime error
Commit ·
8ddc1d0
1
Parent(s): 92de720
Updated yml file to add create test db
Browse files
.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
|