This commit is contained in:
@@ -23,8 +23,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v4
|
uses: astral-sh/setup-uv@v6
|
||||||
with:
|
with:
|
||||||
enable-cache: true
|
enable-cache: true
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|||||||
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