Skip to content

Commit 3f72594

Browse files
mivertowskiclaude
andcommitted
fix(ci): create virtualenv for maturin develop in Python bindings job
maturin develop requires a virtualenv or conda environment. The CI step was installing maturin globally which caused it to fail with "Couldn't find a virtualenv or conda environment". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1292ded commit 3f72594

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,21 @@ jobs:
284284
with:
285285
python-version: ${{ matrix.python-version }}
286286

287-
- name: Install maturin and pytest
288-
run: pip install maturin pytest
287+
- name: Create virtualenv and install tools
288+
working-directory: RustKernels/RustKernels/crates/rustkernel-python
289+
run: |
290+
python -m venv .venv
291+
source .venv/bin/activate
292+
pip install maturin pytest
289293
290294
- name: Build and install Python package
291295
working-directory: RustKernels/RustKernels/crates/rustkernel-python
292-
run: maturin develop --features full
296+
run: |
297+
source .venv/bin/activate
298+
maturin develop --features full
293299
294300
- name: Run Python tests
295301
working-directory: RustKernels/RustKernels/crates/rustkernel-python
296-
run: pytest tests/ -v
302+
run: |
303+
source .venv/bin/activate
304+
pytest tests/ -v

0 commit comments

Comments
 (0)