-
Notifications
You must be signed in to change notification settings - Fork 112
38 lines (33 loc) · 1.18 KB
/
CI-e2e.yml
File metadata and controls
38 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI-e2e
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
e2e:
if: github.repository == 'runpod/runpod-python'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -e ".[test]" --quiet || uv pip install -e .
uv pip install runpod-flash pytest pytest-asyncio pytest-timeout pytest-rerunfailures httpx
uv pip install -e . --reinstall --no-deps
python -c "import runpod; print(f'runpod: {runpod.__version__} from {runpod.__file__}')"
- name: Run e2e tests
run: |
source .venv/bin/activate
pytest tests/e2e/ -v -p no:xdist --timeout=600 --reruns 1 --reruns-delay 5 --log-cli-level=INFO -o "addopts="
env:
RUNPOD_API_KEY: ${{ secrets.RUNPOD_API_KEY }}
RUNPOD_SDK_GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}