forked from KillrVideo/kv-be-python-fastapi-dataapi-table
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (24 loc) · 742 Bytes
/
load_test.yml
File metadata and controls
30 lines (24 loc) · 742 Bytes
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
name: on-demand-load-test
on:
workflow_dispatch:
jobs:
load-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-interaction --no-root
pip install locust
- name: Run Locust load test (headless)
env:
STAGING_BASE_URL: ${{ secrets.STAGING_BASE_URL }}
run: |
locust -f load/semantic_search.py --headless -u 200 -r 20 -t 5m --host "$STAGING_BASE_URL" | cat