fix: Improve wizard.sh and Parakeet/Deepgram worker #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Advanced Backend Unit Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'backends/advanced/**' | |
| - '.github/workflows/advanced-backend-unit-tests.yml' | |
| - 'Makefile.unittests' | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| paths: | |
| - 'backends/advanced/**' | |
| - '.github/workflows/advanced-backend-unit-tests.yml' | |
| - 'Makefile.unittests' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| advanced-backend-unit-tests: | |
| name: Run advanced backend unit tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| - name: Mock config files for unit tests | |
| run: | | |
| cat > config.env << 'EOF' | |
| DEPLOYMENT_MODE=docker-compose | |
| DOMAIN=localhost | |
| CONTAINER_REGISTRY=local | |
| SPEAKER_NODE=localhost | |
| INFRASTRUCTURE_NAMESPACE=infrastructure | |
| APPLICATION_NAMESPACE=application | |
| EOF | |
| mkdir -p backends/advanced | |
| cat > backends/advanced/.env << 'EOF' | |
| AUTH_SECRET_KEY=test-auth-secret | |
| ADMIN_PASSWORD=test-admin-password | |
| ADMIN_EMAIL=test-admin@example.com | |
| EOF | |
| - name: Run advanced backend unit tests | |
| run: make -f Makefile.unittests test-unit |