ci : require editor config

This commit is contained in:
Georgi Gerganov
2026-01-06 13:04:35 +02:00
parent bd2a93d475
commit 54ccf2476b
6 changed files with 28 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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 }}

View File

@@ -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: