forked from phoenix/litellm-mirror
(fix) load test action
This commit is contained in:
parent
2f9e88de1a
commit
832c397540
1 changed files with 14 additions and 20 deletions
30
.github/workflows/load_test.yml
vendored
30
.github/workflows/load_test.yml
vendored
|
@ -21,23 +21,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Contents of example_stats.csv:"
|
echo "Contents of example_stats.csv:"
|
||||||
cat results_stats.csv
|
cat results_stats.csv
|
||||||
upload-asset:
|
- name: Find Latest Release
|
||||||
runs-on: ubuntu-latest
|
id: find_release
|
||||||
steps:
|
run: |
|
||||||
- uses: actions/checkout@v3
|
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: Set up Python
|
- name: Upload CSV as Asset to Latest Release
|
||||||
uses: actions/setup-python@v4
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
upload_url: "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ steps.find_release.outputs.latest_release }}/assets?name=results_stats.csv"
|
||||||
|
asset_path: ./results_stats.csv
|
||||||
- name: Install dependencies
|
asset_name: results_stats.csv
|
||||||
run: |
|
asset_content_type: text/csv
|
||||||
python -m pip install --upgrade pip
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
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