Skip to content

Commit

Permalink
CI: try to remove old Mercurial in Program Files
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Dec 18, 2024
1 parent a2b6634 commit ede8340
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/remove_old_mercurial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from shutil import rmtree
from pathlib import Path

p = Path(r'C:\Program Files\Mercurial')
if p.exists():
rmtree(p)
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Remove system Mercurial on Windows
run: |
python .github/remove_old_mercurial.py
- name: Install Mercurial with UV
run: |
uv tool install mercurial --with hg-git --with hg-evolve
Expand Down

0 comments on commit ede8340

Please sign in to comment.