Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Python Dependency Installation

Actions
Install Python dependencies from requirements.txt file
v1.0.3
Star (27)

py-actions/py-dependency-install GitHub Action

This GitHub Action installs Python package dependencies from a user-defined requirements.txt file path with optional pip, setuptools, and wheel installs/updates during execution. A Python package environment report is displayed at the end of Action execution.

Inputs

path

Optional The requirements.txt file path relative to the root of your source repository. Default = "requirements.txt".

update-pip

Optional A boolean string indicating that a pip package update should occur before the dependency installation. Options: ["true", "false"]. Default="true"

update-setuptools

Optional A boolean string indicating that a setuptools package update should occur before the dependency installation. Options: ["true", "false"]. Default="false"

update-wheel

Optional A boolean string indicating that a wheel package update should occur before the dependency installation. Options: ["true", "false"]. Default="false"

Outputs

None

Example usage

Default

Uses path requirements.txt and updates pip before the install.

- name: Install Python dependencies
  uses: py-actions/py-dependency-install@v1

Disable pip update before install

- name: Install Python dependencies
  uses: py-actions/py-dependency-install@v1
  with:
    update-pip: "false"

Configure setuptools and wheel installs/updates

- name: Install Python dependencies
  uses: py-actions/py-dependency-install@v1
  with:
    update-pip: "true"
    update-setuptools: "true"
    update-wheel: "true"

License

Apache License, v2.0

Python Dependency Installation is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Install Python dependencies from requirements.txt file
v1.0.3

Python Dependency Installation is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.