Files
quickbot_cli/scripts/test_ci_locally.sh
Alexander Kalinovsky 1fa3cbbe1d
Some checks failed
CI / test (3.13) (push) Failing after 1m28s
chore: enhance CI workflow with caching, version display, and improved testing for CLI functionality
2025-08-27 19:51:28 +03:00

42 lines
927 B
Bash
Executable File

#!/bin/bash
# SPDX-FileCopyrightText: 2025 Alexander Kalinovsky <a@k8y.ru>
#
# SPDX-License-Identifier: Apache-2.0
# Test CI workflow steps locally
set -e
echo "🧪 Testing CI workflow steps locally..."
echo "📦 Building package..."
uv build
echo "🔧 Testing package installation..."
uv pip install dist/*.whl
echo "❓ Testing help command..."
uv run quickbot --help
echo "🚀 Testing CLI functionality..."
mkdir -p test_cli_output
uv run quickbot init \
--output test_cli_output \
--project-name "Local Test" \
--description "Local Test Description" \
--author "Local Test" \
--license-name MIT \
--no-include-alembic \
--no-include-i18n \
--no-interactive
echo "📁 Checking generated files..."
ls -la test_cli_output/
echo "📄 Generated pyproject.toml:"
cat test_cli_output/pyproject.toml
echo "🧹 Cleaning up..."
rm -rf test_cli_output
echo "✅ All CI workflow steps passed locally!"