From 26f215318b1c77c2ec93b9ade03558006d96e4ee Mon Sep 17 00:00:00 2001 From: Adrian Rumpold Date: Wed, 9 Oct 2024 10:57:08 +0200 Subject: [PATCH] fix(ci): Change release pipeline to uv --- .github/actions/python-deps/action.yaml | 26 ++++++++++--------------- .github/workflows/release.yaml | 3 +-- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/actions/python-deps/action.yaml b/.github/actions/python-deps/action.yaml index 285d9327..1d8a2c25 100644 --- a/.github/actions/python-deps/action.yaml +++ b/.github/actions/python-deps/action.yaml @@ -1,23 +1,17 @@ -name: Install Python dependencies -description: Install all core and optional Python dependencies +name: Install Python version using uv +description: Install uv and a target Python interpreter inputs: pythonVersion: - description: Python version to set up (see actions/setup-python@v5) + description: Python version to set up using uv required: true runs: using: "composite" steps: - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: ${{ inputs.pythonVersion }} - cache: "pip" - cache-dependency-path: | - requirements-dev.txt - requirements-docs.txt - pyproject.toml - - name: Install dependencies - run: | - pip install -r requirements-dev.txt -r requirements-docs.txt - pip install -e . --no-deps + - name: Install uv + uses: astral-sh/setup-uv@v3 + - name: Install Python interpreter + run: uv python install ${{ inputs.pythonVersion }} + shell: bash + - name: Install the project + run: uv sync --all-extras --dev shell: bash diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 934a0b93..da017741 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,8 +32,7 @@ jobs: with: pythonVersion: 3.11 - name: Build and check - run: | - python -m build + run: uv run -m build - name: Upload build artifacts uses: actions/upload-artifact@v4 with: