Skip to content

修复 worker slot 初始化失败导致的批次死循环 #382

修复 worker slot 初始化失败导致的批次死循环

修复 worker slot 初始化失败导致的批次死循环 #382

name: "CI: Static Checks"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-fmt:
name: lint and fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install development tools
run: python -m pip install pre-commit==2.17.0
- name: Run pre-commit
run: pre-commit run --all-files
- name: Check added source comment ratio
if: ${{ github.event_name != 'pull_request' && vars.SKIP_COMMENT_RATIO != 'true' }}
env:
COMMENT_RATIO_BASE_REF: ${{ github.event.pull_request.base.sha || github.event.before }}
run: python tools/check_comment_ratio.py --base-ref "${COMMENT_RATIO_BASE_REF}"