Skip to content

Commit 2cb30bf

Browse files
committed
fix: Add migrations step before security audit in CI
1 parent 153286b commit 2cb30bf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
run: |
4040
pytest tests/ -v
4141
42+
- name: Run migrations for security audit
43+
env:
44+
PYTHONPATH: ${{ github.workspace }}
45+
DJANGO_SETTINGS_MODULE: tests.settings
46+
run: |
47+
python -c "import django; django.setup(); from django.core.management import call_command; call_command('migrate', '--run-syncdb')"
48+
4249
- name: Run Security Audit
4350
env:
4451
PYTHONPATH: ${{ github.workspace }}

0 commit comments

Comments
 (0)