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 type: boolean
bump: bump:
description: 'Bump type' description: 'Bump type'
required: false required: true
default: 'patch' default: 'patch'
type: choice type: choice
options: options:
@@ -28,16 +28,20 @@ jobs:
- name: Install uv - name: Install uv
uses: astral-sh/setup-uv@v5 uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install
with:
python-version-file: "pyproject.toml"
- name: Install the project - name: Install the project
run: uv sync --locked --all-extras --dev run: uv sync --locked --all-extras --dev
- name: Install Bump tool
- name: Bump version run: uv tool install bump-my-version
id: bump
- name: Bump version - name: Bump version
id: bump_version id: bump_version
run: | 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 - name: Add release notes to environment
id: add_release_notes id: add_release_notes
run: | run: |