Skip to content

Commit b7c92bf

Browse files
committed
Try another way of setting virtualenv not in current directory
1 parent 1d3dffa commit b7c92bf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ jobs:
4444
UV_CACHE_DIR: /home/runner/.cache/uv
4545
run: |
4646
curl -LsSf https://astral.sh/uv/install.sh | sh
47-
uv venv ${{ github.workspace }}/.venv
48-
source ${{ github.workspace }}/.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"
5252
run: |
53-
source ${{ github.workspace }}/.venv/bin/activate
53+
source ${{ github.workspace }}/../.venv/bin/activate
5454
make lint
5555
5656
- name: "Run tests"
5757
run: |
58-
source ${{ github.workspace }}/.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
UV_CACHE_DIR: ~\AppData\Local\uv\Cache
4444
run: |
4545
irm https://astral.sh/uv/install.ps1 | iex
46-
uv venv ${{ github.workspace }}/.venv
47-
${{ github.workspace }}/.venv/Scripts/Activate.ps1
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
run: |
52-
${{ github.workspace }}/.venv/Scripts/Activate.ps1
52+
${{ github.workspace }}/../.venv/Scripts/Activate.ps1
5353
# We run tests against "." and not the tests directory as we test the README
5454
# and documentation.
5555
python -m pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml

0 commit comments

Comments
 (0)