|
| 1 | +```yaml |
1 | 2 | name: 🥊 omnipkg vs The World - Battle & Resilience Test |
2 | 3 |
|
3 | 4 | on: |
@@ -120,8 +121,7 @@ jobs: |
120 | 121 | - name: 📊 Extract Current Stats from README |
121 | 122 | run: | |
122 | 123 | cat > extract_stats.py << 'EOF' |
123 | | - import re |
124 | | - import os |
| 124 | + import re, os |
125 | 125 | from pathlib import Path |
126 | 126 |
|
127 | 127 | README_FILE = Path("README.md") |
@@ -167,7 +167,7 @@ jobs: |
167 | 167 | - name: 📊 Update Battle Report and README |
168 | 168 | run: | |
169 | 169 | cat > update_battle_report.py << 'EOF' |
170 | | - import os, re |
| 170 | + import os |
171 | 171 | from pathlib import Path |
172 | 172 | from datetime import datetime |
173 | 173 |
|
@@ -198,17 +198,15 @@ jobs: |
198 | 198 | print(f"Updated: omnipkg={omnipkg_wins}W/{omnipkg_losses}L/{omnipkg_saves}S, pip={pip_wins}W/{pip_losses}L, uv={uv_wins}W/{uv_losses}L") |
199 | 199 |
|
200 | 200 | badge = "[](https://github.com/1minds3t/omnipkg/actions/workflows/test-tensorflow-switching.yml)" |
201 | | - battle_stats = f"""\ |
202 | | -## 🥊 Package Manager Thunderdome {badge} |
203 | | - |
204 | | -| Package Manager | Conflict Wins | Environment Saves | Verdict | |
205 | | -|:----------------|:-------------:|:-----------------:|:--------| |
206 | | -| **`omnipkg` 🚀** | **{omnipkg_wins}** ({omnipkg_wr}) | **{omnipkg_saves}** | ✅ Solves conflicts *and* heals environments | |
207 | | -| **`pip` 💥** | {pip_wins} ({pip_wr}) | N/A | ❌ Mercilessly overwrites itself | |
208 | | -| **`uv` ⚡️** | {uv_wins} ({uv_wr}) | N/A | ❌ Also overwrites itself (but faster!) | |
209 | | - |
210 | | -### 📊 Latest Test: {test_timestamp} (UTC) |
211 | | -""" |
| 201 | + battle_stats = ( |
| 202 | + f"## 🥊 Package Manager Thunderdome {badge}\n\n" |
| 203 | + f"| Package Manager | Conflict Wins | Environment Saves | Verdict |\n" |
| 204 | + f"|:----------------|:-------------:|:-----------------:|:--------|\n" |
| 205 | + f"| **`omnipkg` 🚀** | **{omnipkg_wins}** ({omnipkg_wr}) | **{omnipkg_saves}** | ✅ Solves conflicts *and* heals environments |\n" |
| 206 | + f"| **`pip` 💥** | {pip_wins} ({pip_wr}) | N/A | ❌ Mercilessly overwrites itself |\n" |
| 207 | + f"| **`uv` ⚡️** | {uv_wins} ({uv_wr}) | N/A | ❌ Also overwrites itself (but faster!) |\n\n" |
| 208 | + f"### 📊 Latest Test: {test_timestamp} (UTC)\n" |
| 209 | + ) |
212 | 210 | |
213 | 211 | try: |
214 | 212 | content = README_FILE.read_text(encoding='utf-8') if README_FILE.exists() else "# omnipkg\n\n" |
|
0 commit comments