forked from phoenix/litellm-mirror
(ci/cd) upload load test result
This commit is contained in:
parent
10a8eb223a
commit
cc1955002d
1 changed files with 20 additions and 14 deletions
34
.github/workflows/load_test.yml
vendored
34
.github/workflows/load_test.yml
vendored
|
@ -21,17 +21,23 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Contents of example_stats.csv:"
|
echo "Contents of example_stats.csv:"
|
||||||
cat results_stats.csv
|
cat results_stats.csv
|
||||||
- name: Access Output
|
upload-asset:
|
||||||
run: |
|
runs-on: ubuntu-latest
|
||||||
echo "Accessing output: ${{ steps.locust_run.outputs.csv_values }}"
|
steps:
|
||||||
- name: Store Results
|
- uses: actions/checkout@v3
|
||||||
run: |
|
|
||||||
results=$(cat results_stats.csv)
|
- name: Set up Python
|
||||||
- name: Upload CSV File to Release
|
uses: actions/setup-python@v4
|
||||||
id: upload_release_asset
|
with:
|
||||||
uses: irongut/EditRelease@v1.2.0
|
python-version: '3.9'
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
- name: Install dependencies
|
||||||
name: "v1.31.8" # Release name you want to target
|
run: |
|
||||||
files: "results_stats.csv" # CSV file to upload as an asset
|
python -m pip install --upgrade pip
|
||||||
|
pip install requests
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
env:
|
||||||
|
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
python upload_release_asset.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue