From 3433d740cc13a4ad085a1cce0c834ae7937064bd Mon Sep 17 00:00:00 2001 From: Alexander Kalinovsky Date: Mon, 25 Aug 2025 20:03:43 +0300 Subject: [PATCH] fix: ci workflow --- .gitea/workflows/ci.yaml | 4 ++-- scripts/local_ci.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100755 scripts/local_ci.sh diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index f9fe506..baf038a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,8 +23,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up uv - uses: astral-sh/setup-uv@v4 + - name: Install uv + uses: astral-sh/setup-uv@v6 with: enable-cache: true python-version: ${{ matrix.python-version }} diff --git a/scripts/local_ci.sh b/scripts/local_ci.sh new file mode 100755 index 0000000..19c89ae --- /dev/null +++ b/scripts/local_ci.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2025 Alexander Kalinovsky +# +# SPDX-License-Identifier: MIT + +# Local CI script to test the same steps as the Gitea workflow +set -e + +echo "๐Ÿš€ Running local CI tests..." + +echo "๐Ÿ“ฆ Installing dependencies..." +uv sync --all-extras --dev + +echo "๐Ÿ” Running Ruff linting..." +uv run ruff check . + +echo "๐ŸŽจ Checking code formatting..." +uv run ruff format --check + +echo "๐Ÿ“ Running MyPy type checking..." +uv run mypy src + +echo "๐Ÿงช Running tests..." +uv run pytest + +echo "โœ… All checks passed!"