From 1592240fb2fd1e63845bea0ac44939368c98b35b Mon Sep 17 00:00:00 2001 From: wuchunfu <319355703@qq.com> Date: Sat, 15 Feb 2025 19:34:27 +0800 Subject: [PATCH] BIGTOP-4361: Add Chinese check --- .github/workflows/check_chinese_character.yml | 42 +++++++++++++++++++ .github/workflows/ci.yml | 15 ------- 2 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/check_chinese_character.yml diff --git a/.github/workflows/check_chinese_character.yml b/.github/workflows/check_chinese_character.yml new file mode 100644 index 000000000..0a3b46406 --- /dev/null +++ b/.github/workflows/check_chinese_character.yml @@ -0,0 +1,42 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +name: "Check Chinese Character" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + check-chinese-character: + name: "Check Chinese Character" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + - name: Set python + uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Check Chinese Character + run: python .github/check-chinese-character.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63fcfc5a1..a20cc558a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,21 +34,6 @@ jobs: with: config: .github/typos.toml - check-chinese-character: - name: "Check Chinese Character" - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: true - - name: Set python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - name: Check Chinese Character - run: python ./.github/check-chinese-character.py - unit-tests-java: name: "Run unit test(Java)" runs-on: ubuntu-latest