Skip to content

Commit 4519f8d

Browse files
committed
Try hardcoding to runner path Windows
1 parent d73f427 commit 4519f8d

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-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 /home/runner/.venv
48+
source /home/runner/.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 /home/runner/.venv/bin/activate
5454
make lint
5555
5656
- name: "Run tests"
5757
run: |
58-
source ${{ github.workspace }}/../.venv/bin/activate
58+
source /home/runner/.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: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,27 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

32+
- uses: actions/cache@v4
33+
env:
34+
UV_CACHE_DIR: C:/Users/runner/.cache/
35+
with:
36+
path: "${{ env.UV_CACHE_DIR }}"
37+
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
38+
restore-keys: |
39+
${{ runner.os }}-uv-
40+
3241
- name: "Install dependencies"
42+
env:
43+
UV_CACHE_DIR: C:/Users/runner/.cache/
3344
run: |
3445
irm https://astral.sh/uv/install.ps1 | iex
35-
uv venv ${{ github.workspace }}/../.venv
36-
${{ github.workspace }}/../.venv/Scripts/Activate.ps1
46+
uv venv C:/Users/runner/.venv
47+
C:/Users/runner/.venv/Scripts/Activate.ps1
3748
uv pip install --upgrade --editable .[dev]
3849
3950
- name: "Run tests"
4051
run: |
41-
${{ github.workspace }}/../.venv/Scripts/Activate.ps1
52+
C:/Users/runner/.venv/Scripts/Activate.ps1
4253
# We run tests against "." and not the tests directory as we test the README
4354
# and documentation.
4455
python -m pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml

0 commit comments

Comments
 (0)