From 4261b5bc0c0f39cb172f61fa5cbc74ba83483ce7 Mon Sep 17 00:00:00 2001 From: Julian Paquerot <111422357+Kajiih@users.noreply.github.com> Date: Tue, 26 Nov 2024 23:40:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20uv=20cache=20on=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f76de50..20c120f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,8 @@ jobs: include: - os: ubuntu-latest path: ~/.cache/pip - # - os: macos-latest - # path: ~/Library/Caches/pip + - os: macos-latest + path: ~/Library/Caches/pip - os: windows-latest path: ~\AppData\Local\pip\Cache runs-on: ${{ matrix.os }} @@ -37,7 +37,6 @@ jobs: shell: bash env: UV_SYSTEM_PYTHON: 1 - UV_CACHE_DIR: ~/.cache/uv steps: - name: 🛎️ Checkout uses: actions/checkout@v4 @@ -66,6 +65,7 @@ jobs: - name: 🏞️ Activate virtual environment run: | if [ "$RUNNER_OS" == "Windows" ]; then + echo UV_CACHE_DIR="~\\AppData\\Local\\uv\\cache" >> $GITHUB_ENV source .venv\\Scripts\\activate echo PATH=$PATH >> $GITHUB_ENV uv pip install pipx # Problems with ruff action without this @@ -88,6 +88,7 @@ jobs: env: REPORT_OUTPUT: md_report.md run: | + uv pip install pytest hatchling echo "REPORT_FILE=${REPORT_OUTPUT}" >> "$GITHUB_ENV" pytest --doctest-modules --md-report --md-report-flavor gfm --md-report-output "$REPORT_OUTPUT" --cov=. # -rA continue-on-error: true