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
name: "Install & Cache Python dependencies" | |
description: "Reusable step (aka 'composite action') for doing pip installs, with cache included." | |
inputs: | |
python-version: | |
description: "The version of Python to install" | |
required: true | |
run: | |
using: "composite" | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ inputs.python-version }} | |
cache: "pip" | |
cache-dependency-path: | | |
requirements/local.txt | |
requirements/base.txt | |
- name: Install dependencies | |
run: pip install -r requirements/local.txt |