Robot2 #217
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: Integration Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'backends/advanced/src/**' | |
| - 'backends/advanced/run-test.sh' | |
| - '.github/workflows/integration-tests.yml' | |
| pull_request: | |
| branches: [ main, develop ] | |
| paths: | |
| - 'backends/advanced/src/**' | |
| - 'backends/advanced/run-test.sh' | |
| - '.github/workflows/integration-tests.yml' | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| services: | |
| docker: | |
| image: docker:dind | |
| options: --privileged | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install PortAudio dependencies | |
| run: sudo apt-get update && sudo apt-get install -y portaudio19-dev | |
| - name: Verify API Keys | |
| run: | | |
| echo "Checking API keys..." | |
| echo "DEEPGRAM_API_KEY length: ${#DEEPGRAM_API_KEY}" | |
| echo "OPENAI_API_KEY length: ${#OPENAI_API_KEY}" | |
| env: | |
| DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| - name: Run Advanced Backend Integration Tests | |
| run: | | |
| export DEEPGRAM_API_KEY="${DEEPGRAM_API_KEY}" | |
| export OPENAI_API_KEY="${OPENAI_API_KEY}" | |
| cd backends/advanced | |
| chmod +x run-test.sh | |
| ./run-test.sh | |
| env: | |
| DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: integration-test-logs | |
| path: | | |
| backends/advanced/test_integration.log | |
| backends/advanced/docker-compose-test.yml | |
| backends/advanced/.env.test | |
| retention-days: 7 |