Skip to content

Commit 07fcdef

Browse files
committed
fix(ci): create virtual environment before uv pip install
Add 'uv venv' step before 'uv pip install' in both tests and prek-hook jobs to fix "No virtual environment found" error. The uv package manager requires an active virtual environment for pip operations.
1 parent 7c532d0 commit 07fcdef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: astral-sh/setup-uv@v7
3131
with:
3232
python-version: ${{ matrix.python-version }}
33+
- name: Create virtual environment
34+
run: uv venv
3335
- name: Install Package
3436
run: uv pip install ".[test]"
3537
- name: Run pytest
@@ -47,6 +49,8 @@ jobs:
4749
uses: j178/prek-action@v1
4850
with:
4951
install-only: true
52+
- name: Create virtual environment
53+
run: uv venv
5054
- name: Install Package
5155
run: uv pip install ".[test]"
5256
- name: run prek with plugin

0 commit comments

Comments
 (0)