Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
continue-on-error
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Dec 7, 2023
1 parent aa49010 commit 2905824
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-db-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
# https://devcenter.heroku.com/articles/heroku-postgres-import-export#restore-to-local-database
- name: Restore database from file
# exit code is 1, but it does actually work, so just continue
continue-on-error: true
run: |
pg_restore --verbose --clean --no-acl --no-owner \
-h localhost -U postgres_user -d postgres_db \
Expand All @@ -61,7 +63,6 @@ jobs:
PGPASSWORD: postgres_password

- name: Test restored database
if: always()
run: |
pytest -vvxs db-backup/test_db_backup.py
env:
Expand Down

0 comments on commit 2905824

Please sign in to comment.