test(ci): add service-specific tests to PR workflow and update test data #74
This file contains 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: PR Test Suite | |
on: | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create .env file | |
run: | | |
echo "ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }}" > .env | |
echo "NIM_KEY=${{ secrets.NIM_KEY }}" >> .env | |
echo "MAX_CONCURRENT_REQUESTS=10" >> .env | |
- name: Start services in detached mode | |
run: make ci DETACH=1 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install test dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r tests/requirements-test.txt # Make sure this file exists with your test dependencies | |
- name: Run Agent Service tests | |
run: python services/AgentService/test_api.py | |
- name: Run PDFService tests | |
run: python services/PDFService/test_api.py | |
- name: Run TTS Service tests | |
run: python services/TTSService/test_api.py | |
- name: Run monologue E2E tests | |
run: python tests/test.py --monologue --target bofa-context.pdf --context citi-context.pdf | |
- name: Run podcast E2E tests | |
run: python tests/test.py --target bofa-context.pdf --context citi-context.pdf |