From 06ed61dad0253aaf08d8d249e72e1df7e343a849 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Wed, 28 Feb 2024 22:13:40 +0000 Subject: [PATCH] Proper installer on Windows --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d7463f..eb4cabd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,11 +32,16 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install uv installer + - name: Install uv installer on Unix + if: runner.os != "Windows" run: curl -LsSf https://astral.sh/uv/install.sh | sh + - name: Install uv installer on Windows + if: runner.os == "Windows" + run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" + - name: Install package - run: uv pip install --system "harmonwig @ .[dev]" + run: uv pip install --system "harmonwig[dev] @ ." - name: Test package run: pytest -ra --cov --cov-report=xml --cov-report=term