Skip to content

Commit b09c578

Browse files
authored
Update rich-module-switching-test.yml
1 parent 1c74593 commit b09c578

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

.github/workflows/rich-module-switching-test.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -36,53 +36,53 @@ jobs:
3636
pip install -e . redis rich==13.7.1
3737
3838
- name: Configure omnipkg for non-interactive use
39-
run: |
40-
python - << 'EOF'
41-
import sys
42-
import site
43-
import json
44-
from pathlib import Path
45-
import os
46-
import sysconfig
47-
48-
try:
49-
site_packages_path = site.getsitepackages()[0]
50-
except (IndexError, AttributeError):
51-
site_packages_path = sysconfig.get_paths()['purelib']
52-
53-
project_root = Path(os.environ['GITHUB_WORKSPACE'])
54-
55-
builder_script = project_root / 'src' / 'omnipkg' / 'package_meta_builder.py'
56-
if not builder_script.exists():
57-
print(f"Error: {builder_script} does not exist")
58-
sys.exit(1)
59-
60-
config_data = {
61-
'site_packages_path': site_packages_path,
62-
'multiversion_base': str(Path(site_packages_path) / '.omnipkg_versions'),
63-
'python_executable': sys.executable,
64-
'builder_script_path': str(builder_script),
65-
'redis_host': 'localhost',
66-
'redis_port': 6379,
67-
'redis_key_prefix': 'omnipkg:pkg:',
68-
'paths_to_index': [str(Path(sys.executable).parent), '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin'],
69-
'auto_cleanup': True,
70-
'cleanup_threshold_days': 30
71-
}
72-
73-
config_dir = Path.home() / '.config' / 'omnipkg'
74-
config_dir.mkdir(parents=True, exist_ok=True)
75-
config_path = config_dir / 'config.json'
76-
77-
try:
78-
with open(config_path, 'w') as f:
79-
json.dump(config_data, f, indent=2)
80-
print(f'omnipkg config created at {config_path}:')
81-
print(json.dumps(config_data, indent=2))
82-
except Exception as e:
83-
print(f"Error writing config: {e}")
84-
sys.exit(1)
85-
EOF
39+
run: |
40+
python - << 'EOF'
41+
import sys
42+
import site
43+
import json
44+
from pathlib import Path
45+
import os
46+
import sysconfig
47+
48+
try:
49+
site_packages_path = site.getsitepackages()[0]
50+
except (IndexError, AttributeError):
51+
site_packages_path = sysconfig.get_paths()['purelib']
52+
53+
project_root = Path(os.environ['GITHUB_WORKSPACE'])
54+
55+
builder_script = project_root / 'src' / 'omnipkg' / 'package_meta_builder.py'
56+
if not builder_script.exists():
57+
print(f"Error: {builder_script} does not exist")
58+
sys.exit(1)
59+
60+
config_data = {
61+
'site_packages_path': site_packages_path,
62+
'multiversion_base': str(Path(site_packages_path) / '.omnipkg_versions'),
63+
'python_executable': sys.executable,
64+
'builder_script_path': str(builder_script),
65+
'redis_host': 'localhost',
66+
'redis_port': 6379,
67+
'redis_key_prefix': 'omnipkg:pkg:',
68+
'paths_to_index': [str(Path(sys.executable).parent), '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin'],
69+
'auto_cleanup': True,
70+
'cleanup_threshold_days': 30
71+
}
72+
73+
config_dir = Path.home() / '.config' / 'omnipkg'
74+
config_dir.mkdir(parents=True, exist_ok=True)
75+
config_path = config_dir / 'config.json'
76+
77+
try:
78+
with open(config_path, 'w') as f:
79+
json.dump(config_data, f, indent=2)
80+
print(f'omnipkg config created at {config_path}:')
81+
print(json.dumps(config_data, indent=2))
82+
except Exception as e:
83+
print(f"Error writing config: {e}")
84+
sys.exit(1)
85+
EOF
8686
8787
- name: Run the Demo - Rich Test
8888
id: run_demo

0 commit comments

Comments
 (0)