From a9274452059912baa52e51243842358579c173a4 Mon Sep 17 00:00:00 2001 From: AzisK Date: Sat, 31 Jan 2026 22:59:28 +0100 Subject: [PATCH] Delete testVersions.sh --- testVersions.sh | 60 ------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100755 testVersions.sh diff --git a/testVersions.sh b/testVersions.sh deleted file mode 100755 index 4511e56..0000000 --- a/testVersions.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Quick local test script for multiple Python versions -# For CI/CD, use GitHub Actions instead - -set -e - -VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13" "3.14") - -echo "๐Ÿงช Testing Space across Python versions..." -echo "๐Ÿ’ก Note: For full CI, push to GitHub (uses Actions)" -echo "" - -# Run pre-commit checks first -echo "Running pre-commit checks..." -uv run pre-commit run --all-files || { - echo "โŒ Pre-commit checks failed. Fix issues and try again." - exit 1 -} -echo "" - -for version in "${VERSIONS[@]}"; do - echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”" - echo "๐Ÿ“ฆ Testing Python $version" - echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”" - - # Install Python version if not available - if ! uv python list | grep -q "$version"; then - echo "Installing Python $version..." - uv python install "$version" - fi - - # Create and activate virtual environment for this version - venv_dir="venvs/.venv$version" - echo "Creating virtual environment in $venv_dir..." - uv venv --python "$version" "$venv_dir" - source "$venv_dir/bin/activate" - - # Print the active Python version and environment path - echo "Active Python version:" - python --version - echo "Active virtual environment path:" - echo "$VIRTUAL_ENV" - echo "Python interpreter path:" - which python - - # Run tests with this version - echo "Running tests..." - uv run --active pytest test_main.py -v - - # Quick smoke test - echo "Testing CLI..." - uv run --active python main.py --help > /dev/null - - echo "โœ… Python $version passed!" - echo "" -done - -echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”" -echo "๐ŸŽ‰ All versions passed!" -echo "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”"