Skip to content

Commit 2ee6a3c

Browse files
committed
Try another way of setting virtualenv
1 parent 33593b1 commit 2ee6a3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/windows-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ jobs:
4141
- name: "Install dependencies"
4242
env:
4343
UV_CACHE_DIR: ~\AppData\Local\uv\Cache
44-
VIRTUAL_ENV: ~\AppData\Local\.venv
4544
run: |
4645
irm https://astral.sh/uv/install.ps1 | iex
47-
uv venv ${{ env.VIRTUAL_ENV }}
46+
uv venv ${{ github.workspace }}/.venv
47+
${{ github.workspace }}/.venv/Scripts/Activate.ps1
4848
uv pip install --upgrade --editable .[dev]
4949
5050
- name: "Run tests"
5151
env:
5252
VIRTUAL_ENV: ~\AppData\Local\.venv
5353
run: |
54-
Import-Module ~
54+
${{ github.workspace }}/.venv/Scripts/Activate.ps1
5555
# We run tests against "." and not the tests directory as we test the README
5656
# and documentation.
5757
${{ env.VIRTUAL_ENV}}/bin/python -m pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml

0 commit comments

Comments
 (0)