mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix ci: skip on fork prs, handle curl timeout, add path filters
This commit is contained in:
parent
2d757b39b6
commit
c09f0c07f8
1 changed files with 7 additions and 1 deletions
|
|
@ -5,6 +5,10 @@ permissions:
|
|||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "docs/**"
|
||||
- "cookbook/**"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
|
|
@ -12,6 +16,7 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
test-db-query-performance:
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
|
|
@ -78,7 +83,8 @@ jobs:
|
|||
-o /dev/null \
|
||||
-w "%{http_code}" \
|
||||
-H "Authorization: Bearer sk-1234" \
|
||||
"http://localhost:4000/user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480")
|
||||
"http://localhost:4000/user/daily/activity/aggregated?start_date=2026-02-01&end_date=2026-02-28&timezone=480") \
|
||||
|| { echo "FAILED: request timed out after 4s"; docker logs litellm-test; exit 1; }
|
||||
|
||||
if [ "$http_code" -ne 200 ]; then
|
||||
echo "FAILED: expected HTTP 200, got $http_code"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue