ci: limit PR testing based on modified files

rather than have unit and functional tests run on
all PRs, we should only have them run on PRs changing
relevant files

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
Nathan Weinberg 2025-03-14 13:28:11 -04:00
parent e3e7013ac8
commit fac4bb8835
2 changed files with 19 additions and 2 deletions

View file

@ -1,9 +1,18 @@
name: Integration tests
on:
pull_request:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- 'distributions/**'
- 'llama_stack/**'
- 'tests/integration/**'
- 'uv.lock'
- 'pyproject.toml'
- 'requirements.txt'
- '.github/workflows/integration-tests.yml' # This workflow
jobs:
ollama:

View file

@ -5,6 +5,14 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- 'distributions/**'
- 'llama_stack/**'
- 'tests/unit/**'
- 'uv.lock'
- 'pyproject.toml'
- 'requirements.txt'
- '.github/workflows/unit-tests.yml' # This workflow
workflow_dispatch:
jobs: