Skip to content

Commit 116a674

Browse files
authored
Merge pull request #2042 from codeflash-ai/ci/scope-workflow-triggers
ci: scope workflow triggers to skip docs-only changes
2 parents 5684168 + 07e4566 commit 116a674

4 files changed

Lines changed: 38 additions & 2 deletions

File tree

.github/workflows/codeflash-optimize.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: CodeFlash
33
on:
44
pull_request:
55
paths:
6-
- '**' # Trigger for all paths
6+
- 'codeflash/**'
7+
- 'tests/**'
8+
- 'pyproject.toml'
9+
- 'uv.lock'
710

811
workflow_dispatch:
912

.github/workflows/mypy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'codeflash/**'
9+
- 'pyproject.toml'
10+
- 'uv.lock'
11+
- 'mypy_allowlist.txt'
712
pull_request:
13+
paths:
14+
- 'codeflash/**'
15+
- 'pyproject.toml'
16+
- 'uv.lock'
17+
- 'mypy_allowlist.txt'
818

919
concurrency:
1020
group: ${{ github.workflow }}-${{ github.ref_name }}

.github/workflows/prek.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: Lint
2-
on: [pull_request]
2+
on:
3+
pull_request:
4+
paths:
5+
- 'codeflash/**'
6+
- 'tests/**'
7+
- 'packages/**'
8+
- 'pyproject.toml'
9+
- 'uv.lock'
310

411
concurrency:
512
group: ${{ github.workflow }}-${{ github.ref_name }}

.github/workflows/unit-tests.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ name: unit-tests
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- 'codeflash/**'
8+
- 'codeflash-benchmark/**'
9+
- 'codeflash-java-runtime/**'
10+
- 'tests/**'
11+
- 'packages/**'
12+
- 'pyproject.toml'
13+
- 'uv.lock'
614
pull_request:
15+
paths:
16+
- 'codeflash/**'
17+
- 'codeflash-benchmark/**'
18+
- 'codeflash-java-runtime/**'
19+
- 'tests/**'
20+
- 'packages/**'
21+
- 'pyproject.toml'
22+
- 'uv.lock'
723
workflow_dispatch:
824

925
concurrency:

0 commit comments

Comments
 (0)