Skip to content

Commit 21b0330

Browse files
committed
Simplify setup of virtualenvs
1 parent f3c01a9 commit 21b0330

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
UV_CACHE_DIR: /home/runner/.cache/uv
4545
run: |
4646
curl -LsSf https://astral.sh/uv/install.sh | sh
47-
uv venv /home/runner/.venv
48-
source /home/runner/.venv/bin/activate
47+
uv venv ${{ github.workspace }}/.venv
48+
source ${{ github.workspace }}/.venv/bin/activate
4949
uv pip install --upgrade --editable .[dev]
5050
5151
- name: "Lint"
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: "Run tests"
5757
run: |
58-
source /home/runner/.venv/bin/activate
58+
source ${{ github.workspace }}/.venv/bin/activate
5959
# We run tests against "." and not the tests directory as we test the README
6060
# and documentation.
6161
pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml

.github/workflows/windows-ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ jobs:
4848
uv pip install --upgrade --editable .[dev]
4949
5050
- name: "Run tests"
51-
env:
52-
VIRTUAL_ENV: ~\AppData\Local\.venv
5351
run: |
5452
${{ github.workspace }}/.venv/Scripts/Activate.ps1
5553
# We run tests against "." and not the tests directory as we test the README

0 commit comments

Comments
 (0)