From 5f7d4066c77c238a2fb697cac1e1f99e44c93afd Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Fri, 2 Oct 2026 10:11:38 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20data/=20anlegen,=20bevor=20manage.py=20ch?= =?UTF-8?q?eck=20l=C3=A4uft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .forgejo/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index a95c9a4..4d5abdb 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -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