16
16
outputs :
17
17
# This output will be 'true' if files in the 'table_related_paths' list changed, 'false' otherwise.
18
18
table_paths_changed : ${{ steps.filter.outputs.table_related_paths }}
19
+ background_cb_changed : ${{ steps.filter.outputs.background_paths }}
19
20
steps :
20
21
- name : Checkout repository
21
22
uses : actions/checkout@v4
@@ -24,15 +25,21 @@ jobs:
24
25
id : filter # Give an ID to this step to reference its outputs
25
26
uses : dorny/paths-filter@v3
26
27
with :
27
- base : ${{ github.ref }}
28
28
filters : |
29
29
table_related_paths:
30
30
- 'components/dash-table/**'
31
31
- 'dash/dash-renderer/**'
32
+ background_paths:
33
+ - 'dash/background_callback/**'
34
+ - 'dash/dash-renderer/**'
35
+ - 'dash/_callback.py'
36
+ - 'dash/_callback_context.py'
37
+ - 'requirements/**'
32
38
33
39
build :
34
40
name : Build Dash Package
35
41
runs-on : ubuntu-latest
42
+ timeout-minutes : 30
36
43
outputs :
37
44
artifact_name : dash-packages
38
45
steps :
86
93
name : Typing Tests
87
94
runs-on : ubuntu-latest
88
95
needs : build
96
+ timeout-minutes : 30
89
97
strategy :
90
98
fail-fast : false
91
99
@@ -130,7 +138,11 @@ jobs:
130
138
131
139
background-callbacks :
132
140
name : Run Background Callback Tests (Python ${{ matrix.python-version }})
133
- needs : build
141
+ needs : [build, changes_filter]
142
+ if : |
143
+ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')) ||
144
+ needs.changes_filter.outputs.background_cb_changed == 'true'
145
+ timeout-minutes : 30
134
146
runs-on : ubuntu-latest
135
147
strategy :
136
148
fail-fast : false
@@ -251,8 +263,12 @@ jobs:
251
263
252
264
table-unit :
253
265
name : Table Unit/Lint Tests (Python ${{ matrix.python-version }})
254
- needs : build
266
+ needs : [build, changes_filter]
267
+ if : |
268
+ (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')) ||
269
+ needs.changes_filter.outputs.table_paths_changed == 'true'
255
270
runs-on : ubuntu-latest
271
+ timeout-minutes : 30
256
272
strategy :
257
273
fail-fast : false
258
274
matrix :
@@ -309,6 +325,7 @@ jobs:
309
325
(github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')) ||
310
326
needs.changes_filter.outputs.table_paths_changed == 'true'
311
327
runs-on : ubuntu-latest
328
+ timeout-minutes : 30
312
329
strategy :
313
330
fail-fast : false
314
331
matrix :
0 commit comments