File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments