setup-python/action.yml
Andrew DiLosa a200bffc82 Merge remote-tracking branch 'upstream/main'
* upstream/main: (33 commits)
  Fix virtual-env toolcache links
  Updated @actions/cache (#382)
  ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#379)
  Cache hit output (#373)
  Add pyton-version to setup PyPy output (#365)
  Rework pipenv caching test (#375)
  Update README.md to fix setup-python version  in example (#368)
  dist fix (#367)
  Cache on ghes (#363)
  Update dist
  Use `\n` instead of `os.EOL`
  Update dist
  Initialise pyproject.toml
  Build and format
  Remove console.log
  Remove unused file
  Reduce test matrix
  Parse values from poetry
  Release
  Add more tests
  ...
2022-04-19 16:05:04 -07:00

33 lines
1.4 KiB
YAML

---
name: 'Setup Python'
description: 'Set up a specific version of Python and add the command-line tools to the PATH.'
author: 'GitHub'
inputs:
python-version:
description: "Version range or exact version of a Python version to use, using SemVer's version range syntax."
default: '3.x'
python-version-file:
description: "File containing the Python version to use. This overrides 'python-version' if specified. Examples: .python-version"
cache:
description: 'Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry.'
required: false
architecture:
description: 'The target architecture (x86, x64) of the Python interpreter.'
token:
description: Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user.
default: ${{ github.token }}
cache-dependency-path:
description: 'Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies.'
outputs:
python-version:
description: "The installed python version. Useful when given a version range as input."
cache-hit:
description: 'A boolean value to indicate a cache entry was found'
runs:
using: 'node16'
main: 'dist/setup/index.js'
post: 'dist/cache-save/index.js'
post-if: success()
branding:
icon: 'code'
color: 'yellow'