Skip to content

Commit

Permalink
ci: add workflow to check if there are missing migrations
Browse files Browse the repository at this point in the history
Closes: #1263
  • Loading branch information
b1rger committed Nov 20, 2024
1 parent ea86081 commit 2ce5b26
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/django-migrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#SPDX-FileCopyrightText: 2024 Birger Schacht
#SPDX-License-Identifier: MIT

name: Check if there are missing migrations
on:
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# for poetry caching, we have to install poetry before setting up python
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
cache: 'poetry'
cache-dependency-path: "pyproject.toml"
python-version: "3.11"
- name: Install project
run: |
poetry install
- name: Make migrations
run: poetry run ./manage.py makemigrations | grep "No changes detected"

0 comments on commit 2ce5b26

Please sign in to comment.