-
Notifications
You must be signed in to change notification settings - Fork 309
46 lines (42 loc) · 1.08 KB
/
integration_tests.yaml
File metadata and controls
46 lines (42 loc) · 1.08 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
39
40
41
42
43
44
45
46
name: integration-tests
on:
workflow_call:
inputs:
lorax_tag:
required: true
type: string
secrets:
RUNPOD_API_KEY:
required: true
workflow_dispatch:
inputs:
lorax_tag:
required: true
type: string
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install runpod
run: |
wget -qO- cli.runpod.net | sudo bash
- name: Config runpod cli
run: |
runpodctl config --apiKey ${{ secrets.RUNPOD_API_KEY }}
- uses: actions/setup-python@v4
with:
python-version: 3.x
# Install the client
- run: pip install -e clients/python
- name: create the pod and then delete the pod
run: |
bash tests/create-pod.sh ${{ inputs.lorax_tag }}
- name: Run tests
run: |
POD_ID=`cat pod_name.txt`
python3 tests/test.py $POD_ID
- name: Delete the pod
run: |
POD_ID=`cat pod_name.txt`
runpodctl remove pod $POD_ID