Skip to content

Commit 8856939

Browse files
authored
Merge pull request #11 from renderbox/develop
Updated for migration checks and missing migrations
2 parents 588c078 + f619e67 commit 8856939

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.github/workflows/permafrost_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
run: |
2929
cd develop
3030
python manage.py test permafrost
31+
python manage.py makemigrations --check --dry-run
3132
env:
3233
DJANGO_DEBUG: 1
3334

.github/workflows/permafrost_develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
run: |
2929
cd develop
3030
python manage.py test permafrost
31+
python manage.py makemigrations --check --dry-run
3132
env:
3233
DJANGO_DEBUG: 1

develop/example/tests.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# from django.test import TestCase
2+
# from django.core.management import call_command
3+
4+
# class SystemTests(TestCase):
5+
6+
# def test_for_missing_migrations(self):
7+
# """ If no migrations are detected as needed, `result`
8+
# will be `None`. In all other cases, the call will fail,
9+
# alerting your team that someone is trying to make a
10+
# change that requires a migration and that migration is
11+
# absent.
12+
# Based on example by Scott Hacker
13+
# """
14+
15+
# result = call_command("makemigrations", check=True, dry_run=True)
16+
# self.assertIsNone(result)

permafrost/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.2.4"
1+
VERSION = "0.2.5"

0 commit comments

Comments
 (0)