-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[README.md] initial draft of documentation
- Loading branch information
1 parent
8874e43
commit b03e8e7
Showing
1 changed file
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,57 @@ | ||
# py-dependency-install | ||
# 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. | ||
|
||
## 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. | ||
|
||
```yaml | ||
uses: py-actions/py-dependency-install@v1 | ||
``` | ||
### Disable `pip` update before install | ||
|
||
```yaml | ||
uses: py-actions/py-dependency-install@v1 | ||
with: | ||
update-pip: "false" | ||
``` | ||
|
||
### Configure `setuptools` and `wheel` installs/updates | ||
|
||
```yaml | ||
uses: py-actions/py-dependency-install@v1 | ||
with: | ||
update-pip: "true" | ||
update-setuptools: "true" | ||
update-wheel: "true" | ||
``` | ||
|
||
## License | ||
|
||
[Apache License, v2.0](LICENSE) |