Skip to content

tecolicom/actions-use-python-tools

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-use-python-tools

actions-use-python-tools

This GitHub action installs python-based packages and cache them for later use. When executed next time with same package list, and any other environment are not changed, installed files are extracted from the cached archive.

When valid cached archive is not found, all packages are installed by pip3 command.

Output is same as @actions/cache.

Usage

# inputs:
#   tools:   { required: true,  type: string }
#   version: { required: false, type: string, default: 3 }
#   cache:   { required: false, type: string, default: yes }
#   key:     { required: false, type: string }

- uses: tecolicom/actions-use-python-tools@v1
  with:

    # python packages
    tools: ''

    # python version
    # Default: 3
    version: '3'

    # Cache strategy
    #
    # yes:      activate cache
    # no:       no cache
    # workflow: effective within same workflow (mainly for test)
    #
    cache: yes

    # Additional cache key
    key: ''

Example

- uses: tecolicom/actions-use-python-tools@v1
  with:
    tools: legit

Issues

  • Always install as a root. I could't find a good way to install under user directory across ubuntu and macos.

See Also