Last active
November 3, 2020 10:39
-
-
Save epwalsh/96677765ab69adfa088b57441c10a490 to your computer and use it in GitHub Desktop.
Python GitHub Actions with pip 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 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }} | |
- name: Install requirements | |
run: | | |
pip install --upgrade --upgrade-strategy eager -r dev-requirements.txt -e . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment