Add Deepgram Voice Agent framework support #707
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: Tests | |
| on: | |
| merge_group: | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for git-auto-commit-action. | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| # Internal PRs: Check out the head branch so git-auto-commit-action can push pre-commit fixes. | |
| # Fork PRs: The head branch doesn't exist in this repo, so fall back to the default merge ref. | |
| ref: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.head_ref || '' }} | |
| - name: Install uv | |
| uses: astral-sh/[email protected] | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: pyproject.toml | |
| - name: Install dependencies | |
| run: uv sync --extra dev --frozen | |
| - name: Run pre-commit | |
| id: run-pre-commit | |
| continue-on-error: true | |
| uses: pre-commit/[email protected] | |
| - name: Commit and push changes | |
| # Fork PRs: The token is read-only so it's not possible to push pre-commit fixes. | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: Apply pre-commit | |
| - name: Run tests | |
| run: uv run pytest tests/ --color=yes --cov=eva --cov-report=term-missing --durations=10 | |
| - name: pre-commit failed (fork PR) | |
| if: steps.run-pre-commit.outcome == 'failure' && github.event.pull_request.head.repo.full_name != github.repository | |
| run: | | |
| echo "::error::Please run 'uv run pre-commit run --all-files', commit the fixes, and push." | |
| exit 1 | |
| - name: pre-commit failed (internal PR) | |
| if: steps.run-pre-commit.outcome == 'failure' | |
| run: exit 1 |