diff --git a/.github/workflows/load_test.yml b/.github/workflows/load_test.yml index 998519331..e62b6cf08 100644 --- a/.github/workflows/load_test.yml +++ b/.github/workflows/load_test.yml @@ -22,6 +22,14 @@ jobs: run: | python -m pip install --upgrade pip 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 id: locust_run uses: BerriAI/locust-github-action@master diff --git a/.github/workflows/redeploy_proxy.py b/.github/workflows/redeploy_proxy.py new file mode 100644 index 000000000..a7336500c --- /dev/null +++ b/.github/workflows/redeploy_proxy.py @@ -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)