Skip to content

Commit b3ea020

Browse files
ci: add path filters to reduce unnecessary workflow runs (#1997)
1 parent ab4e718 commit b3ea020

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/build-docker-images.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ on:
66
- main
77
- dev
88
- demo
9+
paths:
10+
- 'code/**'
11+
- '!code/tests/**'
12+
- 'docker/**'
13+
- 'package.json'
14+
- 'pyproject.toml'
15+
- '.github/workflows/build-docker-images.yml'
16+
- '.github/workflows/build-docker.yml'
917
pull_request:
1018
branches:
1119
- main
@@ -16,6 +24,13 @@ on:
1624
- ready_for_review
1725
- reopened
1826
- synchronize
27+
paths:
28+
- 'code/**'
29+
- 'docker/**'
30+
- 'package.json'
31+
- 'pyproject.toml'
32+
- '.github/workflows/build-docker-images.yml'
33+
- '.github/workflows/build-docker.yml'
1934
merge_group:
2035
workflow_dispatch:
2136

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- main
77
- dev
88
- demo
9+
paths:
10+
- 'infra/**'
11+
- 'scripts/**'
12+
- 'azure.yaml'
13+
- 'pyproject.toml'
14+
- 'Makefile'
15+
- '.github/workflows/ci.yml'
916
schedule:
1017
- cron: '0 8,20 * * *' # Runs at 8:00 AM and 8:00 PM GMT
1118
workflow_dispatch:

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ name: Test Workflow with Coverage
33
on:
44
push:
55
branches: [main, dev, demo]
6+
paths:
7+
- 'code/**'
8+
- 'pyproject.toml'
9+
- 'package.json'
10+
- 'pytest.ini'
11+
- '.github/workflows/tests.yml'
612
pull_request:
713
branches: [main, dev, demo]
14+
paths:
15+
- 'code/**'
16+
- 'pyproject.toml'
17+
- 'package.json'
18+
- 'pytest.ini'
19+
- '.github/workflows/tests.yml'
820
types:
921
- opened
1022
- ready_for_review

0 commit comments

Comments
 (0)