CI: data/ anlegen, bevor manage.py check läuft
All checks were successful
Build and push Docker image / build (push) Successful in 15s
Test / test (push) Successful in 4m41s

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:
mrwnslz 2026-10-02 10:11:38 +02:00
parent 578b0e478b
commit 5f7d4066c7

View file

@ -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