From dab3ea77b70fcd05767793b952d2662ffe3c22b4 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Thu, 12 Dec 2024 16:58:27 +0100 Subject: [PATCH] Update CI build workflow --- .github/workflows/build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba1197a..940124f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,12 +84,13 @@ jobs: platform: windows runs-on: ${{ matrix.os }} + env: + UV_PYTHON: ${{ matrix.interpreter }} steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v4 with: - python-version: ${{ matrix.interpreter }} - allow-prereleases: true + enable-cache: false - uses: dtolnay/rust-toolchain@stable with: components: llvm-tools @@ -112,9 +113,10 @@ jobs: - name: Generate PGO data shell: bash run: | - pip install -r .github/workflows/_pgo_deps.txt - pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall - PGO_RUN=y pytest tests + uv venv .venv + uv pip install -r .github/workflows/_pgo_deps.txt + uv pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall + PGO_RUN=y uv run pytest tests - name: merge PGO data run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata - name: Build PGO wheel