security: remove hardcoded OpenRouter API key, use env var OPENROUTER… #5
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: E2E and Variations | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install playwright | |
| python -m playwright install --with-deps chromium | |
| - name: Run autonomous E2E | |
| run: | | |
| python backend/e2e_runner.py --headless | |
| - name: Start server | |
| run: | | |
| nohup uvicorn main:app --app-dir backend --host 127.0.0.1 --port 8000 >/dev/null 2>&1 & | |
| sleep 2 | |
| curl -sS http://127.0.0.1:8000/api/health | |
| - name: Run message variations | |
| run: | | |
| python backend/variation_tester.py | |