Skip to content

Commit

Permalink
Created wait_for_db command to ensure django app connects to the db a…
Browse files Browse the repository at this point in the history
…fter it is ready. This will ensure that app is consistently able to run without erroring out for trying to connect to the db too early.
  • Loading branch information
mghaznav committed Jul 10, 2024
1 parent 50faa11 commit d5f0e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Testing
run: docker-compose run --rm app sh -c "python manage.py test"
run: docker-compose run --rm app sh -c "python manage.py wait_for_db && python manage.py test"
- name: Linting
run: docker-compose run --rm app sh -c "flake8"

0 comments on commit d5f0e41

Please sign in to comment.