@@ -219,3 +219,60 @@ jobs:
219
219
./report/**/*.xml
220
220
event_name : ${{ github.event.workflow_run.event }}
221
221
report_individual_runs : " true"
222
+
223
+ codestyle_all_without_ruff :
224
+ runs-on : [self-hosted, linux, light]
225
+ needs : gh_build_image
226
+ container :
227
+ # until https://github.com/github/docs/issues/25520 is resolved, using vars
228
+ image : " ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/datalens_ci_with_code:${{ github.sha }}"
229
+ credentials :
230
+ username : ${{ github.actor }}
231
+ password : ${{ secrets.GITHUB_TOKEN }}
232
+ steps :
233
+ - name : ' Cleanup build folder'
234
+ run : |
235
+ rm -rf ./* || true
236
+ rm -rf ./.??* || true
237
+ - name : Checkout code
238
+ uses : actions/checkout@v4
239
+ with :
240
+ fetch-depth : 1
241
+ - run : |
242
+ task cq:check_dir -- .
243
+ task cq:check_dir_strict -- .
244
+ env:
245
+ VENV_PATH: /venv
246
+ SKIP_RUFF: true
247
+
248
+ codestyle_changed_without_ruff :
249
+ runs-on : [ self-hosted, linux, light ]
250
+ needs : gh_build_image
251
+ container :
252
+ # until https://github.com/github/docs/issues/25520 is resolved, using vars
253
+ image : " ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/datalens_ci_with_code:${{ github.sha }}"
254
+ credentials :
255
+ username : ${{ github.actor }}
256
+ password : ${{ secrets.GITHUB_TOKEN }}
257
+ steps :
258
+ - name : ' Cleanup build folder'
259
+ run : |
260
+ rm -rf ./* || true
261
+ rm -rf ./.??* || true
262
+ - name : Checkout code
263
+ uses : actions/checkout@v4
264
+ with :
265
+ fetch-depth : 0
266
+ submodules : true
267
+ # https://github.com/actions/runner-images/issues/6775
268
+ - run : git config --global --add safe.directory .
269
+ - run : git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
270
+ - run : |
271
+ TARGET=$(. /venv/bin/activate && dl-git range-diff-paths --only-added-commits --base ${{ github.event.pull_request.base.sha }} --head ${{ github.event.pull_request.head.sha }})
272
+ echo $TARGET
273
+ task cq:check_target -- "$TARGET"
274
+ task cq:check_target_strict -- "$TARGET" 1>/dev/null 2>/dev/null
275
+ env:
276
+ VENV_PATH: /venv
277
+ SKIP_RUFF: true
278
+ TEST_TARGET_OVERRIDE: ${{ github.event.inputs.test_targets }}
0 commit comments