CI: data/ anlegen, bevor manage.py check läuft
Seit die Podcast-Modelle JSON-Felder haben, öffnet die Systemprüfung die Datenbank (unterstützt SQLite JSON?). Im CI fehlt data/ – die Prüfung brach mit „unable to open database file“ ab, die Tests liefen gar nicht. In Produktion ist data/ ein Volume, dort war nichts betroffen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
578b0e478b
commit
5f7d4066c7
1 changed files with 6 additions and 1 deletions
|
|
@ -29,7 +29,12 @@ jobs:
|
|||
/tmp/venv/bin/pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
- name: Django system check
|
||||
run: /tmp/venv/bin/python manage.py check
|
||||
# The SQLite file lives in data/ (a volume in production, git-ignored).
|
||||
# Since the podcast models have JSON fields, the check opens the
|
||||
# database to ask whether it supports them — so the folder must exist.
|
||||
run: |
|
||||
mkdir -p data
|
||||
/tmp/venv/bin/python manage.py check
|
||||
|
||||
- name: Run tests
|
||||
run: /tmp/venv/bin/python manage.py test
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue