Skip to content

Commit fdbacd1

Browse files
aepfliclaude
andcommitted
build(ci): use uv for Python package management
Replace manual venv creation and pip with uv, a fast Python package installer and resolver written in Rust. Benefits: - Significantly faster package installation - Built-in caching support - Better dependency resolution - More reliable in CI environments Changes: - Add astral-sh/setup-uv@v4 action - Replace venv + pip with uv venv + uv pip install - Enable uv caching for faster CI runs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c742915 commit fdbacd1

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,21 @@ jobs:
123123
with:
124124
python-version: '3.10'
125125

126-
- name: Create virtualenv
127-
run: python -m venv .venv
128-
129-
- name: Install maturin and pytest
130-
run: |
131-
source .venv/bin/activate
132-
pip install maturin pytest
126+
- name: Install uv
127+
uses: astral-sh/setup-uv@v4
128+
with:
129+
enable-cache: true
133130

134-
- name: Build Python package
131+
- name: Install dependencies and build package
135132
run: |
133+
cd python
134+
uv venv
135+
uv pip install maturin pytest
136136
source .venv/bin/activate
137-
cd python && maturin develop
137+
maturin develop
138138
139139
- name: Run Python tests
140140
run: |
141+
cd python
141142
source .venv/bin/activate
142-
cd python && pytest tests/ -v
143+
pytest tests/ -v

0 commit comments

Comments
 (0)