Skip to content

Automatically creates the requirement.txt file for your python project using Github Actions and pipreqs

License

Notifications You must be signed in to change notification settings

afonsoVale/pipreqs-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic requirement.txt for Python Projects on Github

Actions Status Actions Status

pipreqs - Generates pip requirements.txt file based on imports of any project.

This action will automatically create the requirement.txt file for a python project using the pipreqs tool.

You can specify the location of your project folder that contains all the python files within your repository. You can specify the path to which your requirement.txt has to be saved.

Usage

Example workflow

name: Integration Test
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Self test
        id: selftest

        uses: ryan-rozario/pipreqs-action-cpy@master

        # Put an example of mandatory inputs here
        with:
          PROJECT_PATH: project_folder   #default is the root of the repository
          REQUIREMENT_PATH: project_folder/requirement.txt  #default is requirement.txt in the root of your repository 

Inputs

Input Description Default
PROJECT_PATH Gives the path to the project folder that contains the python files .
REQUIREMENT_PATH Gives the path to the location where requirement.txt has to be saved, including the requirement.txt file name requirement.txt

About

Automatically creates the requirement.txt file for your python project using Github Actions and pipreqs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 38.3%
  • Python 37.9%
  • Dockerfile 23.8%