Skip to content

Commit f557fa3

Browse files
Copilotjasonappah
andauthored
Add CI check for outstanding migrations + Django security upgrade (#63)
* Initial plan * Add CI check for outstanding Django migrations Co-authored-by: jasonappah <30608521+jasonappah@users.noreply.github.com> * Add explanatory comments for migration check Co-authored-by: jasonappah <30608521+jasonappah@users.noreply.github.com> * Upgrade Django to 5.1.15 to fix security vulnerabilities Co-authored-by: jasonappah <30608521+jasonappah@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jasonappah <30608521+jasonappah@users.noreply.github.com> Co-authored-by: Jason Antwi-Appah <hey@jasonaa.me>
1 parent 8b4d025 commit f557fa3

2 files changed

Lines changed: 2336 additions & 1941 deletions

File tree

.github/workflows/check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@ jobs:
3535
run: cp .env.example .env
3636
- name: Run lint
3737
run: pipenv run ./scripts/lint.sh
38+
# Check if there are any outstanding Django migrations that need to be created
39+
# This command exits with code 1 if there are outstanding migrations
40+
# Note: Database connection warnings are expected and do not affect the check
41+
- name: Check for outstanding migrations
42+
run: pipenv run python manage.py makemigrations --check --dry-run
3843
# - name: Run tests
3944
# run: pipenv run python manage.py test

0 commit comments

Comments
 (0)