Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

CI: gate releases on the full test suite (was only the 2 migration tests)

Murtaza Nasir639f71821f78
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index b2e17abc..b1ebff0e 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -39,16 +39,18 @@ jobs:
with:
python-version: '3.11'
- - name: Install dependencies
- run: pip install -r requirements.txt
+ - name: Install ffmpeg (needed by stitch / ffprobe tests)
+ run: sudo apt-get update && sudo apt-get install -y ffmpeg
- - name: Run static migration compatibility tests
- run: python tests/test_migration_compatibility.py
+ - name: Install dependencies
+ run: pip install -r requirements.txt pytest
- - name: Run migrations against PostgreSQL
+ - name: Run full test suite (gates the release)
env:
+ # App tests run on an isolated SQLite DB (conftest.py);
+ # test_postgres_migrations reads TEST_DATABASE_URI for real PG.
TEST_DATABASE_URI: postgresql://speakr:speakr@localhost:5432/speakr_test
- run: python tests/test_postgres_migrations.py
+ run: pytest tests/ -q
build:
needs: test