Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

gha-setup-python

This GitHub Action sets up a Python environment for use in workflows.

NOTE: This workflow is opinionated and meets the needs of its author. It is provided publicly as a reference for others to use and modify as needed.

This action will perform the following actions:

  • Install Python
  • Install Pipenv
  • Generate Pipfile.lock if does not exist (only to be used in that run)
  • Install dependencies

Usage

See below for inputs, outputs, and examples.

Inputs

  • python_version (optional): The version of Python to use. This action uses the version resolution employed by actions/setup-python

Outputs

  • python-version: he installed Python or PyPy version. Useful when given a version range as input.
  • cache-hit: A boolean value to indicate a cache entry was found
  • python-path: The absolute path to the Python or PyPy executable.

Examples

To use this action, add the following step to your workflow:

steps:
  - name: Checkout code
    uses: ServerlessOpsIO/gha-setup-workspace@v2

  - name: Setup Python environment
    uses: ServerlessOpsIO/gha-setup-python@v1

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

Contact

For any questions or support, please open an issue in this repository.

About

GitHub Actions composite action for Python setup

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors