mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
36 lines
No EOL
1.1 KiB
YAML
36 lines
No EOL
1.1 KiB
YAML
name: Test Locust Load Test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Run Load Test
|
|
id: locust_run
|
|
uses: BerriAI/locust-github-action@master
|
|
with:
|
|
LOCUSTFILE: ".github/workflows/locustfile.py"
|
|
URL: "https://litellm-api.up.railway.app/"
|
|
USERS: "5"
|
|
RATE: "5"
|
|
RUNTIME: "10s"
|
|
- name: Print CSV File Contents
|
|
run: |
|
|
echo "Contents of example_stats.csv:"
|
|
cat load_test_stats.csv
|
|
- name: Find Latest Release
|
|
id: find_release
|
|
run: |
|
|
latest_release=$(curl -s "https://api.github.com/repos/${{ github.repository }}/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
|
|
echo "::set-output name=latest_release::$latest_release"
|
|
|
|
- name: Upload CSV as Asset to Latest Release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: "load_test_stats.csv;load_test.html"
|
|
update_latest_release: true |