Skip to content

CristovamSilva/python-dependencies-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 

Repository files navigation

Python-Dependencies-Action

This action provides the following functionality for GitHub Actions users:

  • Checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it.

  • Install a version of Python.

  • Cache dependencies for Pip.

  • (Optional) Install your application modules as described in requirements.txt.

  • (Optional) Install Quality Assurance dependencies such as isort, black, mypy flake8, and pylint and any other present in requirements-qa.txt.

  • (Optional) Install Security Assurance dependencies such as bandit and any other present in requirements-sec.txt.

  • (Optional) Install Test dependencies such as pytest and pytest-cov and any other present in requirements-test.txt.

Basic Usage

-   name: Setup Cache & Dependencies
    uses: cristovamsilva/python-dependencies-action@master
    with:
        python-version: '3.9'           # Defaults to 3.10
        dependencies-directory: ./requirements  # Where to search for the requirements*.txt files.
        application: true               # Whether to install application modules.
        quality: true                   # Whether to install qa dependencies.
        security: true                  # Whether to install security dependencies.
        test: true                      # Whether to install test dependencies.

About

Action to setup python, install and cache dependencies

Resources

Stars

Watchers

Forks

Packages

No packages published