Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.63 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.63 KB

Pipx Install Action

Install Python packages using pipx with cache support on GitHub Actions.

Use this action to install Python packages using pipx, especially for tools written in Python that should be installed in isolated environments. After installation, this action will automatically save the installed packages to a cache to speed up installations for subsequent workflow runs.

Key Features

  • Installs Python packages using pipx.
  • Caches Python package installations to be used in subsequent workflow runs.

Available Inputs

Name Type Description
packages Multiple strings (required) Names of the Python packages to be installed.

Example Usages

This example demonstrates how to use the Pipx Install Action to install Ruff in a GitHub Actions workflow:

name: Python CI
on:
  push:
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4.1.7

      - name: Install Ruff
        uses: threeal/pipx-install-action@v1.0.0
        with:
          packages: ruff

      # Add more steps as needed for the workflow

License

This project is licensed under the terms of the MIT License.

Copyright © 2024 Alfi Maulana