From 61fff09ea1d9380a5269183b5186379726ff777a Mon Sep 17 00:00:00 2001 From: Daniel Roy Greenfeld <62857+pydanny@users.noreply.github.com> Date: Wed, 8 May 2024 15:46:47 +0100 Subject: [PATCH] Convert workflows to use UV instead of pip per #166 --- .github/workflows/python-ci.yml | 4 ++-- .github/workflows/python-publish.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index a2107db..fa112b0 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -15,8 +15,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install '.[dev]' + python -m pip install uv + uv pip install -p ${{ matrix.python-version }} '.[dev]' - name: Lint with ruff and black run: | # stop the build if there are linting errors diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index cb0a60f..08b7eeb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -23,8 +23,8 @@ jobs: python-version: 3.x - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install build + pip install uv + uv pip install -p 3.12 build - name: Build package run: | rm -rf dist