Skip to content

Action: actions/setup-python

Overview

action/setup-python is a image from GitHub Actions to set up workflow with a specific version of Python

Features:

  • Installing a version of Python or PyPy and (by default) adding it to the PATH

  • Optionally caching dependencies for pip, pipenv and poetry

  • Registering problem matchers for error output

Timeline

Operation At
Upgrade into version 4 by @v4 2024-04-01

Component

Notes:

  • Our implemented Python is version 3.9. So we should declare environment for specific version.

Example:

.github/workflows/*.yml
- uses: actions/setup-python@v4
  with:
    python-version: "3.9"