From 5d712a48987bf8509de2bafef1411f9e14568130 Mon Sep 17 00:00:00 2001 From: "ark-hand[bot]" <315378070+ark-hand[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 10:10:37 +0800 Subject: [PATCH] chore: sync from ark-apis 467715a257 Auto-generated SDK sync from ark-apis at 467715a25763b77b1925a3c0c99b0f353a1bc445. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: 4efec1f951c41f46afa8ae0e1ca4d6f8d07e29cd Ark-APIs-Commit: 467715a25763b77b1925a3c0c99b0f353a1bc445 --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7985e5c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: Python CI + +on: + pull_request: + branches: + - main + # A workflow added by a pull request is not loaded from the base branch for + # that pull_request event. Running the workflow from ark-hand's same-repo + # sync branch makes the first workflow-installation PR testable as well. + push: + branches: + - "sync/**" + paths: + - ".github/workflows/ci.yml" + +permissions: + contents: read + +concurrency: + group: python-ci-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + python-ci: + name: Python CI + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install uv + run: python -m pip install --disable-pip-version-check --quiet uv + + - name: Install dependencies + run: uv sync --frozen --no-progress + + - name: Lint + run: uv run ruff check src/ + + - name: Check formatting + run: uv run ruff format --check src/