Skip to content

Commit 079f974

Browse files
caidishclaude
andcommitted
CI: Use uv as drop-in replacement for pip in workflows
Replace pip with uv pip install --system for faster dependency resolution and installation in all CI workflows (tests, lint, release). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 733f49a commit 079f974

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
with:
2020
python-version: '3.11'
2121

22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
2225
- name: Install dependencies
2326
run: |
24-
python -m pip install --upgrade pip
25-
pip install -e .[dev]
27+
uv pip install --system -e .[dev]
2628
2729
- name: Run Black (formatting check)
2830
run: |

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
with:
1919
python-version: '3.11'
2020

21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
23+
2124
- name: Install build dependencies
2225
run: |
23-
python -m pip install --upgrade pip
24-
pip install build twine
26+
uv pip install --system build twine
2527
2628
- name: Build package
2729
run: |

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v5
29+
2730
- name: Install dependencies
2831
run: |
29-
python -m pip install --upgrade pip
30-
pip install -e .[dev]
31-
pip install qmeasure
32+
uv pip install --system -e .[dev]
33+
uv pip install --system qmeasure
3234
3335
- name: Run tests
3436
run: |

0 commit comments

Comments
 (0)