ci: Run the test suite before building release images (v2.7.1)
Add a 'test' stage to the Containerfile (production base image plus pytest) and build it in the release workflow before the push step, so a failing test stops the release. Fix the eight tests that were failing: media validation returns a PIL Image since v1.5.0, and the migration test needs TESTING to skip production config checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
43ec7cb8be
commit
6a76ee26af
6 files changed
+48
-19
No files matched your search
@@ -43,7 +43,7 @@ class TestRetryLogic:
|
||||
from starpunk.database import init_db
|
||||
from starpunk import create_app
|
||||
|
||||
app = create_app({'DATABASE_PATH': str(temp_db)})
|
||||
app = create_app({'DATABASE_PATH': str(temp_db), 'TESTING': True})
|
||||
init_db(app)
|
||||
|
||||
# Verify migrations table exists and has records
|
||||
|
||||
Reference in new issue
Block a user