3434 run : |
3535 python -m pip install --upgrade pip
3636 pip install -e . redis
37+
3738 - name : Configure omnipkg for non-interactive use
3839 run : |
3940 python - << 'EOF'
@@ -43,16 +44,19 @@ jobs:
4344 from pathlib import Path
4445 import os
4546 import sysconfig
47+
4648 try:
4749 site_packages_path = site.getsitepackages()[0]
4850 except (IndexError, AttributeError):
4951 site_packages_path = sysconfig.get_paths()['purelib']
52+
5053 project_root = Path(os.environ['GITHUB_WORKSPACE'])
5154
5255 builder_script = project_root / 'omnipkg' / 'package_meta_builder.py'
5356 if not builder_script.exists():
5457 print(f"Error: {builder_script} does not exist")
5558 sys.exit(1)
59+
5660 config_data = {
5761 'site_packages_path': site_packages_path,
5862 'multiversion_base': str(Path(site_packages_path) / '.omnipkg_versions'),
6569 'auto_cleanup': True,
6670 'cleanup_threshold_days': 30
6771 }
72+
6873 config_dir = Path.home() / '.config' / 'omnipkg'
6974 config_dir.mkdir(parents=True, exist_ok=True)
7075 config_path = config_dir / 'config.json'
7883 print(f"Error writing config: {e}")
7984 sys.exit(1)
8085 EOF
86+
8187 - name : Run the Demo - NumPy + SciPy
8288 id : run_demo
8389 run : |
@@ -99,10 +105,10 @@ jobs:
99105 echo "Demo completed successfully (exit code $DEMO_EXIT_CODE, logs verified)."
100106 echo "demo_outcome=success" >> $GITHUB_OUTPUT
101107 PASSED_COUNT=$(grep -c "PASSED" /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt || echo "0")
102- if [ "$PASSED_COUNT" -ge 12 ]; then
103- echo "NumPy + SciPy demo verified: Found $PASSED_COUNT PASSED results (expected at least 12 )!"
108+ if [ "$PASSED_COUNT" -ge 6 ]; then
109+ echo "NumPy + SciPy demo verified: Found $PASSED_COUNT PASSED results (expected at least 6 )!"
104110 else
105- echo "Error: Expected at least 12 PASSED results, but found only $PASSED_COUNT."
111+ echo "Error: Expected at least 6 PASSED results, but found only $PASSED_COUNT."
106112 cat /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt
107113 exit 1
108114 fi
@@ -112,6 +118,7 @@ jobs:
112118 cat /tmp/omnipkg-artifacts/numpy_scipy_demo_output.txt
113119 exit 1
114120 fi
121+
115122 - name : Archive Demo Output
116123 if : always()
117124 uses : actions/upload-artifact@v4
0 commit comments