forked from phoenix/litellm-mirror
re-deploy proxy
This commit is contained in:
parent
284f2dc804
commit
fe8b7f6b4a
2 changed files with 19 additions and 0 deletions
8
.github/workflows/load_test.yml
vendored
8
.github/workflows/load_test.yml
vendored
|
@ -22,6 +22,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install PyGithub
|
pip install PyGithub
|
||||||
|
- name: re-deploy proxy
|
||||||
|
run: |
|
||||||
|
echo "Current working directory: $PWD"
|
||||||
|
ls
|
||||||
|
python ".github/workflows/redeploy_proxy.py"
|
||||||
|
env:
|
||||||
|
LOAD_TEST_REDEPLOY_URL1: ${{ secrets.LOAD_TEST_REDEPLOY_URL1 }}
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
- name: Run Load Test
|
- name: Run Load Test
|
||||||
id: locust_run
|
id: locust_run
|
||||||
uses: BerriAI/locust-github-action@master
|
uses: BerriAI/locust-github-action@master
|
||||||
|
|
11
.github/workflows/redeploy_proxy.py
vendored
Normal file
11
.github/workflows/redeploy_proxy.py
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
"""
|
||||||
|
|
||||||
|
redeploy_proxy.py
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import requests
|
||||||
|
|
||||||
|
# send a get request to this endpoint
|
||||||
|
deploy_hook1 = os.getenv("LOAD_TEST_REDEPLOY_URL1")
|
||||||
|
response = requests.get(deploy_hook1, timeout=20)
|
Loading…
Add table
Add a link
Reference in a new issue