Skip to content

Commit 04dd2a7

Browse files
authored
fix(ci): add path for forked PR unit test runs (#2540)
## Description > Should include a concise description of the changes (bug or feature), it's > impact, along with a summary of the solution ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [ ] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Make sure to add `!` if this involve a breaking change 🛠️ Fixes #<issue_number_goes_here>
1 parent 243e10c commit 04dd2a7

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/tests.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ on:
3232
- ".github/workflows/tests.yaml"
3333
pull_request_target:
3434
types: [labeled]
35+
paths:
36+
- "**"
37+
- "!docs/**"
38+
- "!**.md"
39+
- "!.github/**"
40+
- ".github/workflows/tests.yaml"
3541

3642
# Declare default permissions as read only.
3743
permissions: read-all

‎.github/workflows/tests_fallback.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ on:
2929
- "**.md"
3030
- ".github/**"
3131
- "!.github/workflows/tests.yaml"
32+
pull_request_target:
33+
types: [labeled]
34+
paths:
35+
- "docs/**"
36+
- "**.md"
37+
- ".github/**"
38+
- "!.github/workflows/tests.yaml"
3239

3340
permissions: read-all
3441

0 commit comments

Comments
 (0)