Skip to content

Setup Python with uv

Setup Python environment with uv package manager and install dependencies

Usage

- uses: serapeum-org/github-actions/actions/python-setup/uv@uv/v1
  with:
    python-version: '3.12'
    cache: 'true'
    install-groups: ''
    verify-lock: 'true'

Inputs

Input Description Required Default
python-version Python version to install No 3.12
cache Whether to enable caching of uv dependencies (cache key is based on uv.lock) No true
install-groups Dependency groups (PEP 735) and/or optional dependencies (extras) to install No -
verify-lock Whether to verify the lock file is up to date by running "uv lock --check" No true