Created
January 12, 2020 12:18
-
-
Save Gr1N/f6d76b08d2b5c2acece7b8930caf43f8 to your computer and use it in GitHub Desktop.
10 things I love about GitHub Actions (cache)
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
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- runs: pip install -U -r requirements.txt | |
if: steps.cache.outputs.cache-hit != 'true' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment