Skip to content

[Repo Assist] ci: use astral-sh/setup-uv instead of setup-python + pipx install uv #4551

@github-actions

Description

@github-actions

🤖 Created by Repo Assist, an automated AI assistant.

Summary

Replaces the two-step Python/uv setup in both build.yml and python-type-checking.yml:

Before:

- name: Set up Python ${{ matrix.python-version }}
  uses: actions/setup-python@v6
  with:
    python-version: ${{ matrix.python-version }}

- name: Install uv
  run: |
    pipx install uv
    pipx install maturin

After:

- name: Set up uv
  uses: astral-sh/setup-uv@v6
  with:
    python-version: ${{ matrix.python-version }}
    enable-cache: true

Benefits

  1. Caching: astral-sh/setup-uv with enable-cache: true caches the uv installation and Python downloads, speeding up CI.
  2. Fewer steps: One action replaces two steps (setup-python + manual pipx install).
  3. Removes redundant pipx install maturin: maturin is already declared as a dev dependency in the root pyproject.toml, so uv run maturin develop --release (used in the build scripts) installs it automatically via uv sync. The manual pipx install maturin was never necessary.

Files changed

  • .github/workflows/build.yml — Python matrix build job (ubuntu × windows × Python 3.12/3.13/3.14)
  • .github/workflows/python-type-checking.yml — Pyright type-checking job

Validation

CI will validate that the Python build and tests continue to pass with this change. No F# compiler code is modified.


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 24746558940 -n agent -D /tmp/agent-24746558940

# Create a new branch
git checkout -b repo-assist/eng-setup-uv-action-20260421-0b06f8f6eab2a34f main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-24746558940/aw-repo-assist-eng-setup-uv-action-20260421.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-setup-uv-action-20260421-0b06f8f6eab2a34f
gh pr create --title '[Repo Assist] ci: use astral-sh/setup-uv instead of setup-python + pipx install uv' --base main --head repo-assist/eng-setup-uv-action-20260421-0b06f8f6eab2a34f --repo fable-compiler/Fable

Generated by 🌈 Repo Assist, see workflow run. Learn more.

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@51c8f6ad4357d2ecc06e47120031b3d75e80227d

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions