- removes test-models command to reduce binary size - adds integration_test.go with build tag (go test -tags=integration) - tests all provider/model combinations with language/keywords variations - adds testdata/sample.wav for deterministic testing - updates e2e.yml workflow to use go test instead of cli - uses go-version-file in all workflows for consistency
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
# .github/workflows/e2e.yml
|
|
name: E2E Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
integration:
|
|
name: Integration Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
build-essential \
|
|
pkg-config \
|
|
libasound2-dev \
|
|
libpulse-dev \
|
|
libpipewire-0.3-dev
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Run integration tests
|
|
env:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }}
|
|
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
|
|
ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }}
|
|
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
|
run: go test -tags=integration -v ./cmd/hyprvoice -timeout 15m
|