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!"