# Simplest SkyPilot test - just validates provisioning and basic setup name: test-simple resources: use_spot: true cpus: 2+ # CPU only to avoid GPU quota issues memory: 8+ disk_size: 30 setup: | echo "==================================================" echo "๐Ÿงช SIMPLE SKYPILOT TEST" echo "==================================================" echo "" # Machine info echo "๐Ÿ“Š Machine Info:" echo " Hostname: $(hostname)" echo " CPU cores: $(nproc)" echo " Memory: $(free -h | grep Mem | awk '{print $2}')" echo "" # Install Python deps echo "๐Ÿ“ฆ Installing dependencies..." pip install -q numpy soundfile librosa echo " โœ“ Installed: numpy, soundfile, librosa" echo "" # Clone repo echo "๐Ÿ“ฅ Cloning repository..." git clone -q https://huggingface.co/marcosremar2/ensemble-tts-annotation echo " โœ“ Repository cloned" echo "" echo "โœ… Setup complete!" run: | cd ensemble-tts-annotation echo "" echo "==================================================" echo "๐Ÿงช RUNNING TESTS" echo "==================================================" echo "" # Check files echo "๐Ÿ“ Checking key files..." for file in README.md QUICK_START_SKYPILOT.md ensemble_tts/__init__.py; do if [ -f "$file" ]; then echo " โœ“ $file" else echo " โŒ $file MISSING" fi done echo "" # Test Python imports echo "๐Ÿ Testing Python imports..." python3 -c "import numpy; import soundfile; import librosa; print(' โœ“ All imports work')" echo "" # Generate 1 test audio echo "๐ŸŽต Generating test audio..." python3 scripts/data/create_synthetic_test_data.py --output test_tmp --samples 1 echo "" # Count files AUDIO_COUNT=$(find test_tmp -name "*.wav" | wc -l) echo "๐Ÿ“Š Created $AUDIO_COUNT audio files" if [ "$AUDIO_COUNT" -eq 7 ]; then echo " โœ“ Expected 7 files - CORRECT" else echo " โŒ Expected 7 but got $AUDIO_COUNT" fi echo "" # Cleanup rm -rf test_tmp echo "==================================================" echo "โœ… ALL TESTS PASSED!" echo "==================================================" echo "" echo "๐ŸŽ‰ SkyPilot successfully:" echo " โœ“ Provisioned machine" echo " โœ“ Installed dependencies" echo " โœ“ Cloned repository" echo " โœ“ Generated synthetic audio" echo "" echo "๐Ÿ’ฐ Cost: ~\$0.05 for this test" echo ""