yezz123 / setup-uv

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

Add venv creation and activation support #7

Closed Aymane11 closed 7 months ago

Aymane11 commented 7 months ago

This PR adds the uv-venv option to create and activate a virtual environment using uv.

Usage:

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

Solves yezz123/setup-uv#6