Skip to content

Commit 5f2ef02

Browse files
authored
Update omnipkg_vs_the_world.yml
1 parent 5300e99 commit 5f2ef02

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

.github/workflows/omnipkg_vs_the_world.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -263,23 +263,21 @@ jobs:
263263
264264
print(f"Updated stats: omnipkg={omnipkg_wins}W/{omnipkg_losses}L/{omnipkg_saves}S, pip={pip_wins}W/{pip_losses}L, uv={uv_wins}W/{uv_losses}L")
265265
266-
battle_stats_section_content = f"""## 🥊 omnipkg vs The World: Battle Statistics
267-
*Live-updated results from our continuous integration tests.*
268-
269-
| Package Manager | Conflict Test Wins | Environment Saves | Result |
270-
|:----------------|:------------------:|:-------------------:|:-------|
271-
| **omnipkg 🚀** | **{omnipkg_wins}** ({omnipkg_wr} Win Rate) | **{omnipkg_saves}** | ✅ **Solves Conflicts & Heals Environment** |
272-
| **pip 💥** | {pip_wins} ({pip_wr} Win Rate) | 0 | ❌ Overwrites Packages |
273-
| **uv ⚡️** | {uv_wins} ({uv_wr} Win Rate) | 0 | ❌ Overwrites Packages |
274-
275-
**Test Scenarios:**
276-
- **Conflict Test**: Attempting to install conflicting versions of another package manager (e.g., `pip==24.0` and `pip==23.2.1`). A "Win" means both versions are usable.
277-
- **Environment Save**: After another tool (`uv`) damages the environment by downgrading itself, `omnipkg revert` is run. A "Save" means the environment was successfully restored.
278-
279-
### 📊 Recent Test Log
280-
| Date (UTC) | omnipkg (Conflict) | pip (Conflict) | uv (Conflict) | omnipkg (Revert) |
281-
|:-----------|:------------------:|:--------------:|:-------------:|:----------------:|
282-
| {test_timestamp} | {omnipkg_conflict} | {pip_conflict} | {uv_conflict} | {omnipkg_revert} |"""
266+
# Build the content using string concatenation to avoid f-string issues
267+
battle_stats_section_content = "## 🥊 omnipkg vs The World: Battle Statistics\n"
268+
battle_stats_section_content += "*Live-updated results from our continuous integration tests.*\n\n"
269+
battle_stats_section_content += "| Package Manager | Conflict Test Wins | Environment Saves | Result |\n"
270+
battle_stats_section_content += "|:----------------|:------------------:|:-------------------:|:-------|\n"
271+
battle_stats_section_content += f"| **omnipkg 🚀** | **{omnipkg_wins}** ({omnipkg_wr} Win Rate) | **{omnipkg_saves}** | ✅ **Solves Conflicts & Heals Environment** |\n"
272+
battle_stats_section_content += f"| **pip 💥** | {pip_wins} ({pip_wr} Win Rate) | 0 | ❌ Overwrites Packages |\n"
273+
battle_stats_section_content += f"| **uv ⚡️** | {uv_wins} ({uv_wr} Win Rate) | 0 | ❌ Overwrites Packages |\n\n"
274+
battle_stats_section_content += "**Test Scenarios:**\n"
275+
battle_stats_section_content += "- **Conflict Test**: Attempting to install conflicting versions of another package manager (e.g., `pip==24.0` and `pip==23.2.1`). A \"Win\" means both versions are usable.\n"
276+
battle_stats_section_content += "- **Environment Save**: After another tool (`uv`) damages the environment by downgrading itself, `omnipkg revert` is run. A \"Save\" means the environment was successfully restored.\n\n"
277+
battle_stats_section_content += "### 📊 Recent Test Log\n"
278+
battle_stats_section_content += "| Date (UTC) | omnipkg (Conflict) | pip (Conflict) | uv (Conflict) | omnipkg (Revert) |\n"
279+
battle_stats_section_content += "|:-----------|:------------------:|:--------------:|:-------------:|:----------------:|\n"
280+
battle_stats_section_content += f"| {test_timestamp} | {omnipkg_conflict} | {pip_conflict} | {uv_conflict} | {omnipkg_revert} |"
283281
284282
# Try to preserve some recent test history from existing README
285283
if README_FILE.exists():

0 commit comments

Comments
 (0)