yezz123 / setup-uv

Set up your GitHub Actions workflow with a specific version of uv
https://github.com/astral-sh/uv
MIT License
35 stars 2 forks source link
astral dependencies pip ruff uv

setup-uv

Build Status

This action sets up a uv for use in actions by installing a version of UV and adding to PATH. The action will fail if no matching versions are found.

This action supports versions of:

Usage

Install latest available version of UV

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-python@v4
    with:
      python-version: "3.11"
  - uses: yezz123/setup-uv@v4
  - run: uv --version

Exact version of UV to install, using SemVer's version syntax

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-python@v4
    with:
      python-version: "3.11"
  - uses: yezz123/setup-uv@v4
    with:
      uv-version: "0.1.12"
  - run: uv --version

Create and activate a virtual environment using uv

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-python@v4
    with:
      python-version: "3.11"
  - uses: yezz123/setup-uv@v4
    with:
      uv-venv: "your_venv_name"
  - run: uv pip install black # this command will run in the uv environment

Contributing

Create issues

You can create a new issue in the GitHub repository, for example to:

Note: if you create an issue, then I'm going to ask you to also help others. 😉

Create a Pull Request

You can contribute to the source code with Pull Requests, for example:

License 📄

This project is licensed under the terms of the MIT License.