ta4ilka69/Run Locust tests

Run Locust load tests in GitHub Actions with thresholds and artifact uploads

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
locust_filePath to locust file (e.g., tests/locustfile.py)yes
hostTarget host, e.g. https://example.comyes
usersNumber of simulated users (equivalent to -u/--users)no""
spawn_rateRate to spawn users per second (equivalent to -r/--spawn-rate)no""
run_timeTotal run time (e.g., 2m, 30s)no""
headlessRun in headless modenotrue
tagsOnly run tasks with any of these tags (comma-separated)no""
exclude_tagsExclude tasks with any of these tags (comma-separated)no""
log_levelSet locust log level (e.g., INFO, DEBUG)noINFO
additional_argsAdditional raw args to append to the locust commandno""
check_fail_ratioFail if (failures/requests) > this ratio (e.g., 0.02)no""
check_avg_response_timeFail if aggregated average response time (ms) > valueno""
check_p95_response_timeFail if aggregated 95th percentile response time (ms) > valueno""
python_versionPython version to useno3.11
locust_versionLocust version specifier (e.g., 2.29.1 or ~=2.29)no""
requirementsPath to requirements file to pip install before runningno""
output_dirDirectory to place reports (HTML and CSVs)nolocust-report
csv_prefixCSV filename prefix (without path)nolocust_stats
html_reportGenerate HTML reportnotrue
upload_artifactsUpload reports as workflow artifactsnotrue
artifact_nameArtifact name when uploadingnolocust-report
namedescription
fail_ratioAggregated failure ratio
avg_response_timeAggregated average response time (ms)
p95_response_timeAggregated 95th percentile response time (ms)
total_requestsTotal number of requests
total_failuresTotal number of failures
thresholds_passedWhether threshold checks passed