Skip to content

Setup Python with pip

Setup Python environment with pip package manager for pyproject.toml projects

Usage

- uses: serapeum-org/github-actions/actions/python-setup/pip@pip/v1
  with:
    python-version: '3.12'
    cache: ''
    install-groups: ''
    architecture: 'x64'

Inputs

Input Description Required Default
python-version Python version to install No 3.12
cache Cache type for pip dependencies (passed to actions/setup-python cache input) No -
install-groups Dependency groups (PEP 735) and/or optional dependencies (extras) to install No -
architecture Target architecture for Python (passed to actions/setup-python) No x64