tests: replace legacy e2e with flash-based mock-worker provisioning #738
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: CI-e2e | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| pip install runpod-flash | |
| pip install -e . --force-reinstall --no-deps | |
| python -c "import runpod; print(f'runpod: {runpod.__version__} from {runpod.__file__}')" | |
| pip install pytest pytest-asyncio pytest-timeout httpx | |
| - name: Run QB e2e tests | |
| run: | | |
| source .venv/bin/activate | |
| pytest tests/e2e/ -v -m "qb or cold_start" -p no:xdist --timeout=600 -o "addopts=" | |
| env: | |
| RUNPOD_API_KEY: ${{ secrets.RUNPOD_API_KEY }} | |
| - name: Cleanup flash resources | |
| if: always() | |
| run: | | |
| source .venv/bin/activate | |
| pkill -f "flash run" || true | |
| cd tests/e2e/fixtures/all_in_one | |
| flash undeploy --force 2>/dev/null || true |