test gitub action #5
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: 'Python requirements - get or set in cache' | ||
on: push | ||
description: 'Get pip cache from cache else generate it' | ||
Check failure on line 3 in .github/workflows/test_install.yml GitHub Actions / Python requirements - get or set in cacheInvalid workflow file
|
||
inputs: | ||
requirements: | ||
description: 'Cache key to use' | ||
required: true | ||
default: requirements.txt | ||
jobs: | ||
runs: | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: 'pip' | ||
python-version: '3.12' | ||
cache-dependency-path: | | ||
requirements.txt | ||
- run: | | ||
pip install -r ${{ inputs.requirements }} | ||
shell: bash |