Skip to content

Commit 62b4595

Browse files
authored
feat: replace pip with uv (#147)
uv is a drop-in replacement for pip for the needs of this action. I got a 3x improvement in performance in my local tests... (from ~30s execution down to ~10s execution) . `astral-sh/setup-uv`'s cache is disabled because it cannot generate a cache key. It cannot because this action does not pin the version of `mergify-cli` (by design I gather), that causes a bunch of warnings and would (potentially) cache a mergify cli version forever, besides uv is so fast and `mergify-cli` is so small there is no benefit for the cache anyway.
1 parent 70ef6d5 commit 62b4595

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,17 @@ runs:
6565
with:
6666
python-version: "3.14"
6767

68+
- name: Install uv
69+
uses: astral-sh/setup-uv@v7
70+
with:
71+
# mergify is too small to benefit + there is no version lock (so no cache key either)
72+
enable-cache: false
73+
6874
- name: Install dependencies
6975
shell: bash
7076
run: |
71-
pip install mergify-cli
77+
uv tool install mergify-cli
78+
mergify --version
7279
7380
- shell: bash
7481
id: junit-process

0 commit comments

Comments
 (0)