update workflow, install python, tool

This commit is contained in:
2025-05-20 09:12:49 +02:00
parent 660b9b56e4
commit 5ae86a3c7e

View File

@@ -11,7 +11,7 @@ on:
type: boolean
bump:
description: 'Bump type'
required: false
required: true
default: 'patch'
type: choice
options:
@@ -28,16 +28,20 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Bump version
id: bump
- name: Install Bump tool
run: uv tool install bump-my-version
- name: Bump version
id: bump_version
run: |
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --tag --allow-dirty
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
- name: Add release notes to environment
id: add_release_notes
run: |