Skip to content

Commit 1cd967f

Browse files
committed
generate migrations in CI
1 parent 80fd264 commit 1cd967f

File tree

8 files changed

+5
-3680
lines changed

8 files changed

+5
-3680
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
115115
poetry add django@^${{ matrix.django-version }}
116116
poetry install --no-interaction --with ${{ matrix.psycopg-version }}
117+
poetry run ./manage.py makemigrations
117118
- name: No Optional Dependency Unit Tests
118119
run: |
119120
poetry run pytest --cov-append
@@ -199,6 +200,7 @@ jobs:
199200
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
200201
poetry add django@^${{ matrix.django-version }}
201202
poetry install --no-interaction -E all
203+
poetry run ./manage.py makemigrations
202204
- name: Run Full Unit Tests
203205
run: |
204206
poetry run pytest
@@ -290,6 +292,7 @@ jobs:
290292
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
291293
poetry add django@^${{ matrix.django-version }}
292294
poetry install -E all --with mysql
295+
poetry run ./manage.py makemigrations
293296
- name: Install mysqlclient if needed
294297
if: ${{ matrix.mysqlclient-version != '' }}
295298
run: poetry run pip install -U mysqlclient=="${{ matrix.mysqlclient-version }}"
@@ -391,6 +394,7 @@ jobs:
391394
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
392395
poetry add django@^${{ matrix.django-version }}
393396
poetry install -E all --with mysql
397+
poetry run ./manage.py makemigrations
394398
- name: Install mysqlclient if needed
395399
if: ${{ matrix.mysqlclient-version != '' }}
396400
run: poetry run pip install -U mysqlclient=="${{ matrix.mysqlclient-version }}"
@@ -500,6 +504,7 @@ jobs:
500504
sed -i 's/^python = .*/python = "^${{ matrix.python-version }}"/' pyproject.toml
501505
poetry add django@^${{ matrix.django-version }}
502506
poetry install -E all --with oracle
507+
poetry run ./manage.py makemigrations
503508
- name: Run Full Unit Tests
504509
run: |
505510
poetry run pytest -s

tests/benchmark/migrations/0001_initial.py

Lines changed: 0 additions & 2850 deletions
This file was deleted.

tests/constraints/migrations/0001_initial.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/db_default/migrations/0001_initial.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)