https://github.com/liskin/gh-pipx
GitHub Action that installs Python commands using pipx.
https://github.com/liskin/gh-pipx
ci continuous-integration github github-actions
Last synced: about 2 months ago
JSON representation
GitHub Action that installs Python commands using pipx.
- Host: GitHub
- URL: https://github.com/liskin/gh-pipx
- Owner: liskin
- License: mit
- Created: 2024-05-18T15:50:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-19T00:48:36.000Z (about 1 year ago)
- Last Synced: 2025-03-25T03:30:37.798Z (2 months ago)
- Topics: ci, continuous-integration, github, github-actions
- Homepage: https://github.com/marketplace/actions/gh-pipx
- Size: 2.93 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: pipx
GitHub Action that installs Python commands using [pipx](https://pipx.pypa.io/).
Everything that pip(x) downloads is
[cached](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows).This action is a simpler (50-ish lines) alternative to
[threeal/pipx-install-action](https://github.com/threeal/pipx-install-action),
with a slightly different caching behaviour:* pipx-install-action caches the installed pipx environments, but lets the
caches go stale—one needs to explicitly specify a package version to avoid
using a stale cache* gh-pipx (this one) caches only pip's cache, so the latest versions requested
are installed; the cache only speeds up downloads of pip metadata and wheels## Usage
```yaml
jobs:
somejob:
steps:
# …
- uses: liskin/gh-pipx@v1
with:
packages: >-
ruff
'isort[colors]'
'mypy >= 1.0'
# …
```### Parameters
* `packages`
* Space-separated list of package specifications to install
* (Required)
* `cache-date-format`
* Date format string used as cache key (new cache will be created whenever
the output date changes)
* (Default: `%Y-%m`)