Skip to content

Commit

Permalink
build: move unapplied migration check to different workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt committed Sep 1, 2023
1 parent 9e5b88c commit c69784f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/bf-py-coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ jobs:
- name: (BF) Import sorting
run: cd backend/benefit && isort -c .

- name: (BF) Check for unapplied migrations
run: cd backend/benefit && python manage.py migrate --check

- name: (Shared) Formatting
run: cd backend/shared && black --check .

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bf-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
- name: Compile messages
run: cd backend/benefit && python manage.py compilemessages

- name: Check for unapplied migrations
run: cd backend/benefit && python manage.py migrate --check
env:
DATABASE_URL: postgres://benefit:benefit@postgres/benefit

- name: Run tests
run: pytest backend/benefit -ra -vv --doctest-modules --cov=. --pyargs shared.oidc shared.audit_log
env:
Expand Down

0 comments on commit c69784f

Please sign in to comment.