ci: only run CircleCI and GitHub Actions unit tests on code changes

Gate the CircleCI build_and_test workflow behind a path-filtering setup
pipeline so it only continues when .py/.ts/.tsx files changed, and add
matching pull_request paths filters to the GitHub Actions unit-test
workflows. Docs-only and other non-code PRs no longer spin up the full
test matrices.
This commit is contained in:
mateo-berri 2026-06-24 15:19:55 +00:00
parent 8bca05d311
commit 4b55eacdd3
No known key found for this signature in database
14 changed files with 3189 additions and 3057 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -5,6 +5,15 @@ on:
branches:
- main
- litellm_internal_staging
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
workflow_dispatch:
permissions:

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read

View file

@ -7,6 +7,15 @@ on:
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"
paths:
- "**/*.py"
- "**/*.ts"
- "**/*.tsx"
- "pyproject.toml"
- "uv.lock"
- "litellm/proxy/schema.prisma"
- ".github/workflows/test-unit-*.yml"
- ".github/workflows/_test-unit-base.yml"
permissions:
contents: read