Skip to content

Commit

Permalink
Faire échouer la CI si il manque une migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Anto59290 committed Jul 2, 2024
1 parent f669a8c commit 598bb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 598bb82

Please sign in to comment.