| 1 |
name: Install |
| 2 |
description: Install dependencies |
| 3 |
|
| 4 |
inputs: |
| 5 |
python-version: |
| 6 |
description: Python version for installing dependencies |
| 7 |
required: true |
| 8 |
|
| 9 |
runs: |
| 10 |
using: composite |
| 11 |
steps: |
| 12 |
- name: Checkout the source code |
| 13 |
uses: actions/checkout@v4 |
| 14 |
|
| 15 |
- name: Set the python version |
| 16 |
uses: actions/setup-python@v5 |
| 17 |
with: |
| 18 |
python-version: ${{ inputs.python-version }} |
| 19 |
|
| 20 |
- name: Set up pip package caching |
| 21 |
uses: actions/cache@v4 |
| 22 |
with: |
| 23 |
path: ~/.cache/pip |
| 24 |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/requirements/*.txt') }} |
| 25 |
restore-keys: ${{ runner.os }}-pip- |
| 26 |
|
| 27 |
- name: Install dependencies |
| 28 |
shell: bash |
| 29 |
run: pip install -r requirements/ci.txt |