Skip to content

Commit

Permalink
ci(release-python-package)👷: Update GitHub Actions workflow for Pytho…
Browse files Browse the repository at this point in the history
…n package release

- Add setup for Pixi Environment with caching capabilities.
- Change installation commands to use 'uv tool install' instead of 'uv python install' and 'uv pip install'.
- Update pre-commit installation command to use 'uv tool install'.
  • Loading branch information
ericmjl committed Dec 19, 2024
1 parent 2bddd73 commit c687111
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Setup Pixi Environment
uses: prefix-dev/[email protected]
with:
pixi-version: latest
cache: true
cache-write: ${{ github.event_name == 'push' }}

- name: Set up Python
run: |
uv python install
uv pip install bumpversion
uv tool install bumpversion
- name: Set version name
run: echo "VERSION_NAME=${{ github.event.inputs.version_name || env.DEFAULT_VERSION_NAME }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -92,7 +98,7 @@ jobs:
- name: Commit release notes
if: github.event_name != 'pull_request'
run: |
uv pip install pre-commit
uv tool install pre-commit
pre-commit run --all-files || pre-commit run --all-files
git add .
git commit -m "Add release notes for ${{ env.version_number }}"
Expand Down

0 comments on commit c687111

Please sign in to comment.