@@ -155,26 +155,27 @@ jobs:
155
155
run : |
156
156
./scripts/ci/ci_prepare_and_test_backport_packages.sh
157
157
158
- pyfiles :
158
+ trigger-tests :
159
159
timeout-minutes : 10
160
160
name : " Count changed important files"
161
161
runs-on : ubuntu-latest
162
162
outputs :
163
- count : ${{ steps.pyfiles .outputs.count }}
163
+ count : ${{ steps.trigger-tests .outputs.count }}
164
164
steps :
165
165
- uses : actions/checkout@master
166
166
- name : " Get count of changed python files"
167
167
run : |
168
168
set +e
169
169
./scripts/ci/ci_count_changed_files.sh ${GITHUB_SHA} \
170
- '\.py$ |.github/workflows/|^Dockerfile|^scripts'
170
+ '^airflow |.github/workflows/|^Dockerfile|^scripts|^chart '
171
171
echo "::set-output name=count::$?"
172
- id : pyfiles
172
+ id : trigger-tests
173
+
173
174
tests-kubernetes :
174
175
timeout-minutes : 80
175
176
name : " K8s: ${{matrix.kube-mode}} ${{matrix.python-version}} ${{matrix.kubernetes-version}}"
176
177
runs-on : ubuntu-latest
177
- needs : [static-checks-1, static-checks-2, pyfiles ]
178
+ needs : [static-checks-1, static-checks-2, trigger-tests ]
178
179
strategy :
179
180
matrix :
180
181
python-version : [3.6, 3.7]
@@ -200,8 +201,8 @@ jobs:
200
201
KUBERNETES_VERSION : " ${{ matrix.kubernetes-version }}"
201
202
KIND_VERSION : " ${{ matrix.kind-version }}"
202
203
HELM_VERSION : " ${{ matrix.helm-version }}"
203
- # For pull requests only run tests when python files changed
204
- if : needs.pyfiles .outputs.count != '0' || github.event_name != 'pull_request'
204
+ # For pull requests only run tests when important files changed
205
+ if : needs.trigger-tests .outputs.count != '0' || github.event_name != 'pull_request'
205
206
steps :
206
207
- uses : actions/checkout@master
207
208
- uses : actions/setup-python@v1
@@ -239,7 +240,7 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
239
240
timeout-minutes : 80
240
241
name : " ${{matrix.test-type}}:Pg${{matrix.postgres-version}},Py${{matrix.python-version}}"
241
242
runs-on : ubuntu-latest
242
- needs : [static-checks-1, static-checks-2, pyfiles ]
243
+ needs : [static-checks-1, static-checks-2, trigger-tests ]
243
244
strategy :
244
245
matrix :
245
246
python-version : [3.6, 3.7, 3.8]
@@ -253,8 +254,8 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
253
254
RUN_TESTS : " true"
254
255
CI_JOB_TYPE : " Tests"
255
256
TEST_TYPE : ${{ matrix.test-type }}
256
- # For pull requests only run tests when python files changed
257
- if : needs.pyfiles .outputs.count != '0' || github.event_name != 'pull_request'
257
+ # For pull requests only run tests when important files changed
258
+ if : needs.trigger-tests .outputs.count != '0' || github.event_name != 'pull_request'
258
259
steps :
259
260
- uses : actions/checkout@master
260
261
- uses : actions/setup-python@v1
@@ -271,7 +272,7 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
271
272
timeout-minutes : 80
272
273
name : " ${{matrix.test-type}}:MySQL${{matrix.mysql-version}}, Py${{matrix.python-version}}"
273
274
runs-on : ubuntu-latest
274
- needs : [static-checks-1, static-checks-2, pyfiles ]
275
+ needs : [static-checks-1, static-checks-2, trigger-tests ]
275
276
strategy :
276
277
matrix :
277
278
python-version : [3.6, 3.7, 3.8]
@@ -285,8 +286,8 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
285
286
RUN_TESTS : " true"
286
287
CI_JOB_TYPE : " Tests"
287
288
TEST_TYPE : ${{ matrix.test-type }}
288
- # For pull requests only run tests when python files changed
289
- if : needs.pyfiles .outputs.count != '0' || github.event_name != 'pull_request'
289
+ # For pull requests only run tests when important files changed
290
+ if : needs.trigger-tests .outputs.count != '0' || github.event_name != 'pull_request'
290
291
steps :
291
292
- uses : actions/checkout@master
292
293
- uses : actions/setup-python@v1
@@ -303,7 +304,7 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
303
304
timeout-minutes : 80
304
305
name : " ${{matrix.test-type}}:Sqlite Py${{matrix.python-version}}"
305
306
runs-on : ubuntu-latest
306
- needs : [static-checks-1, static-checks-2, pyfiles ]
307
+ needs : [static-checks-1, static-checks-2, trigger-tests ]
307
308
strategy :
308
309
matrix :
309
310
python-version : [3.6, 3.7, 3.8]
@@ -316,7 +317,7 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
316
317
RUN_TESTS : " true"
317
318
CI_JOB_TYPE : " Tests"
318
319
# For pull requests only run tests when python files changed
319
- if : needs.pyfiles .outputs.count != '0' || github.event_name != 'pull_request'
320
+ if : needs.trigger-tests .outputs.count != '0' || github.event_name != 'pull_request'
320
321
steps :
321
322
- uses : actions/checkout@master
322
323
- uses : actions/setup-python@v1
@@ -334,7 +335,7 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
334
335
name : " ${{matrix.test-type}}:Pg${{matrix.postgres-version}},Py${{matrix.python-version}}"
335
336
runs-on : ubuntu-latest
336
337
continue-on-error : true
337
- needs : [static-checks-1, static-checks-2, pyfiles ]
338
+ needs : [static-checks-1, static-checks-2, trigger-tests ]
338
339
strategy :
339
340
matrix :
340
341
python-version : [3.6]
@@ -348,8 +349,8 @@ ${{ hashFiles('requirements/requirements-python${{matrix.python-version}}.txt')
348
349
RUN_TESTS : " true"
349
350
CI_JOB_TYPE : " Tests"
350
351
TEST_TYPE : ${{ matrix.test-type }}
351
- # For pull requests only run tests when python files changed
352
- if : needs.pyfiles .outputs.count != '0' || github.event_name != 'pull_request'
352
+ # For pull requests only run tests when important files changed
353
+ if : needs.trigger-tests .outputs.count != '0' || github.event_name != 'pull_request'
353
354
steps :
354
355
- uses : actions/checkout@master
355
356
- uses : actions/setup-python@v1
0 commit comments