From 598bb82e4603b6393d453496aff10f3ab321761b Mon Sep 17 00:00:00 2001 From: Anto59290 Date: Tue, 2 Jul 2024 08:28:40 +0200 Subject: [PATCH] =?UTF-8?q?Faire=20=C3=A9chouer=20la=20CI=20si=20il=20manq?= =?UTF-8?q?ue=20une=20migration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/django.yml | 5 +++++ core/models.py | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 309a6c50..8bb04043 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -21,6 +21,11 @@ jobs: python-version: 3.11.1 - name: Install dependencies run: pip install pip-tools && pip-sync && playwright install + - name: Check no missing migrations + run: python manage.py makemigrations --check --dry-run > /dev/null + env: + SECRET_KEY: NOT_A_REAL_SECRET + DATABASE_URL: postgres://postgres:postgres@localhost/github_actions - name: Run ruff run: ruff check . - name: Run ruff format diff --git a/core/models.py b/core/models.py index 0b7c5461..c59aba80 100644 --- a/core/models.py +++ b/core/models.py @@ -18,3 +18,4 @@ class Meta: complement_fonction = models.TextField(blank=True) telephone = models.CharField(max_length=20, blank=True) mobile = models.CharField(max_length=20, blank=True) + test = models.EmailField() \ No newline at end of file