This commit is contained in:
27
scripts/local_ci.sh
Executable file
27
scripts/local_ci.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# SPDX-FileCopyrightText: 2025 Alexander Kalinovsky <a@k8y.ru>
|
||||
#
|
||||
# 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!"
|
||||
Reference in New Issue
Block a user