Skip to content

Commit 31423af

Browse files
committed
Fix ty typecheck in CI by using venv
Ty needs to find installed packages in a virtual environment. Create a venv and activate it before running ty check.
1 parent 911c32c commit 31423af

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,11 @@ jobs:
142142
143143
- name: Install dependencies
144144
run: |
145-
uv pip install --system -e .
145+
uv venv
146+
uv pip install -e .
146147
147148
- name: Run ty
148-
run: uvx ty check json2xml tests
149+
run: |
150+
source .venv/bin/activate
151+
uvx ty check json2xml tests
149152

0 commit comments

Comments
 (0)