From 54ccf2476ba41e6268c465ccf7bd3c137c577b70 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 6 Jan 2026 13:04:35 +0200 Subject: [PATCH] ci : require editor config --- .github/workflows/build-cache.yml | 5 ++++- .github/workflows/build-cmake-pkg.yml | 5 ++++- .github/workflows/build-linux-cross.yml | 5 ++++- .github/workflows/python-lint.yml | 5 +++++ .github/workflows/python-type-check.yml | 5 +++++ .github/workflows/server.yml | 6 ++++++ 6 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cache.yml b/.github/workflows/build-cache.yml index 6a22e41c3b..3bf3233c3e 100644 --- a/.github/workflows/build-cache.yml +++ b/.github/workflows/build-cache.yml @@ -4,7 +4,10 @@ on: workflow_dispatch: # allows manual triggering schedule: - cron: '0 * * * *' - + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed concurrency: group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/build-cmake-pkg.yml b/.github/workflows/build-cmake-pkg.yml index fee2ab96bd..6f3486284e 100644 --- a/.github/workflows/build-cmake-pkg.yml +++ b/.github/workflows/build-cmake-pkg.yml @@ -2,7 +2,10 @@ name: Build relocatable cmake package on: workflow_dispatch: workflow_call: - + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed jobs: linux: runs-on: ubuntu-24.04 diff --git a/.github/workflows/build-linux-cross.yml b/.github/workflows/build-linux-cross.yml index c2c6ea12ae..ed3666ca01 100644 --- a/.github/workflows/build-linux-cross.yml +++ b/.github/workflows/build-linux-cross.yml @@ -2,7 +2,10 @@ name: Build on Linux using cross-compiler on: workflow_dispatch: workflow_call: - + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed jobs: # ubuntu-24-riscv64-cpu-cross: # runs-on: ubuntu-24.04 diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index ddfdf73b8f..9a69bd8dd7 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -8,6 +8,10 @@ on: pull_request: types: [opened, synchronize, reopened] paths: ['.github/workflows/python-lint.yml', '**/*.py'] + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed concurrency: group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} @@ -15,6 +19,7 @@ concurrency: jobs: flake8-lint: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest name: Lint steps: diff --git a/.github/workflows/python-type-check.yml b/.github/workflows/python-type-check.yml index 373bb60102..6d55f8e856 100644 --- a/.github/workflows/python-type-check.yml +++ b/.github/workflows/python-type-check.yml @@ -8,11 +8,16 @@ on: - '**.py' - '**/requirements*.txt' pull_request: + types: [opened, synchronize, reopened] paths: - '.github/workflows/python-type-check.yml' - 'pyrightconfig.json' - '**.py' - '**/requirements*.txt' + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed concurrency: group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 5694feb2c9..37499d98df 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -19,6 +19,10 @@ on: pull_request: types: [opened, synchronize, reopened] paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'tools/server/**.*'] + workflow_run: + workflows: ["EditorConfig Checker"] + types: + - completed env: LLAMA_LOG_COLORS: 1 @@ -32,6 +36,7 @@ concurrency: jobs: server: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest strategy: @@ -95,6 +100,7 @@ jobs: pytest -v -x -m "not slow" server-windows: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: windows-2022 steps: