File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- - name : ⚙️ Configure omnipkg for non-interactive use
1+ - name : ⚙️ Configure omnipkg for non-interactive use
22 run : |
33 python - << 'EOF'
44 import sys
55 import site
66 import json
77 from pathlib import Path
88 import os
9-
109 site_packages_path = site.getsitepackages()[0]
1110
1211 # Determine project root (where pyproject.toml is)
1312 project_root = Path(os.environ['GITHUB_WORKSPACE']) # GITHUB_WORKSPACE is the repo root
14-
1513 config_data = {
1614 'site_packages_path': site_packages_path,
1715 'multiversion_base': str(Path(site_packages_path) / '.omnipkg_versions'),
2523 'auto_cleanup': True,
2624 'cleanup_threshold_days': 30
2725 }
28-
2926 config_dir = Path.home() / '.config' / 'omnipkg'
3027 config_dir.mkdir(parents=True, exist_ok=True)
3128 config_path = config_dir / 'config.json'
32-
3329 with open(config_path, 'w') as f:
3430 json.dump(config_data, f, indent=2)
35-
3631 print(f'omnipkg config created at {config_path}:')
3732 print(json.dumps(config_data, indent=2))
3833 EOF
39-
4034 - name : 🧪 Run the Demo: UV Test (Binary Switching)
4135 id : run_demo
4236 run : |
You can’t perform that action at this time.
0 commit comments