feat: harden install.bat + add CI checks for launcher scripts
install.bat: - Add conda self-test (conda --version) before env create - Verify botty python.exe exists after env creation - Smoke-test key imports (cv2, tesserocr, discord, etc.) CI (.github/workflows/ci.yml): - Add test_setup_bat_files.py to test matrix test/test_setup_bat_files.py (7 tests): - All expected .bat files exist - No hardcoded usernames (alex, alexpolo, ultimate) in run scripts - No absolute home paths in run scripts (must use %~dp0 / %USERNAME%) - All run_*.bat source find_python.bat (no duplicated conda detection) - find_python.bat checks >= 6 conda locations - install.bat has conda self-test and python verification
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
run: |
|
||||
C:\Miniconda\condabin\conda.bat activate botty
|
||||
python -c "import sys; print(sys.version)"
|
||||
coverage run -m pytest test/smoke_test.py test/nip/ test/game_stats_test.py test/closest_non_hud_test.py test/transmute/ -v -s
|
||||
coverage run -m pytest test/smoke_test.py test/nip/ test/game_stats_test.py test/closest_non_hud_test.py test/transmute/ test/test_setup_bat_files.py -v -s
|
||||
|
||||
- name: Coverage
|
||||
shell: powershell
|
||||
|
||||
Reference in New Issue
Block a user