From eb298095b5dd935766bc45b5af99da4df6c889c9 Mon Sep 17 00:00:00 2001 From: Power John Date: Mon, 27 Jul 2026 16:27:55 +0800 Subject: [PATCH] ci(wisdom): add converter test workflow Signed-off-by: Power John --- .github/workflows/converter-wisdom-ci.yml | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/converter-wisdom-ci.yml diff --git a/.github/workflows/converter-wisdom-ci.yml b/.github/workflows/converter-wisdom-ci.yml new file mode 100644 index 00000000..eae3f1cd --- /dev/null +++ b/.github/workflows/converter-wisdom-ci.yml @@ -0,0 +1,67 @@ +# +# 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 +# +# http://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: Converters Wisdom CI + +on: + push: + branches: [ "main" ] + paths: + - 'converters/wisdom/**' + - '.github/workflows/converter-wisdom-ci.yml' + pull_request: + branches: [ "main" ] + paths: + - 'converters/wisdom/**' + - '.github/workflows/converter-wisdom-ci.yml' + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12", "3.13", "3.14"] + + steps: + - name: Checkout project + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + echo "${HOME}/.local/bin" >> "${GITHUB_PATH}" + + - name: Sync dependencies + working-directory: converters/wisdom + run: | + uv sync + + - name: Unit Tests + working-directory: converters/wisdom + run: | + uv run pytest