Skip to content

Commit 4e39faf

Browse files
committed
fix: Add venv to Github action
1 parent 9348af2 commit 4e39faf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/python-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
run: |
2828
python -m pip install --upgrade pip
2929
python -m pip install uv
30+
python -m venv .venv
31+
source .venv/bin/activate
3032
if [ -f pyproject.toml ]; then
3133
uv pip install -e ".[dev,protobuf]"
3234
else
@@ -35,10 +37,12 @@ jobs:
3537
3638
- name: Generate protobuf stubs
3739
run: |
40+
source .venv/bin/activate
3841
bash scripts/generate_protos.sh
3942
4043
- name: Run tests with pytest
4144
run: |
45+
source .venv/bin/activate
4246
pytest tests/ -v --cov=src --cov-report=xml
4347
4448
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)