Skip to content

Instantly share code, notes, and snippets.

@epwalsh
Last active November 3, 2020 10:39
Show Gist options
  • Save epwalsh/96677765ab69adfa088b57441c10a490 to your computer and use it in GitHub Desktop.
Save epwalsh/96677765ab69adfa088b57441c10a490 to your computer and use it in GitHub Desktop.
Python GitHub Actions with pip cache
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