Skip to content

Commit 0ce1411

Browse files
authored
Update test-uv-binary-switching.yml
1 parent 6caf389 commit 0ce1411

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/test-uv-binary-switching.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
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'),
@@ -25,18 +23,14 @@
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: |

0 commit comments

Comments
 (0)