Skip to content

Commit

Permalink
Check for missing Django migrations in backend test (mozilla#3370)
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo authored Sep 24, 2024
1 parent ad73d10 commit 9a9c516
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
with:
enable-cache: true
version: "0.4.13"
- run: >
- name: Install requirements
run: >
uv pip install
-r requirements/default.txt
-r requirements/dev.txt
Expand All @@ -67,7 +68,12 @@ jobs:
- run: mkdir -p tag-admin/dist translate/dist translate/public
- run: python manage.py collectstatic

- run: pytest --cov-report=xml:pontoon/coverage.xml --cov=.
# Check if there are missing migrations
- name: Verify missing migrations
run: python manage.py makemigrations --check

- name: Run tests
run: pytest --cov-report=xml:pontoon/coverage.xml --cov=.
- uses: codecov/codecov-action@v4
with:
flags: backend
Expand Down

0 comments on commit 9a9c516

Please sign in to comment.