Skip to content

Commit

Permalink
fix(ci): Change release pipeline to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoKF committed Oct 9, 2024
1 parent 4355133 commit 26f2153
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
26 changes: 10 additions & 16 deletions .github/actions/python-deps/action.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 26f2153

Please sign in to comment.