Cache lock file along with dependencies

This commit is contained in:
Christopher C. Wells 2022-06-02 20:53:32 -07:00
parent 5799c15f03
commit a072868a16
3 changed files with 9 additions and 3 deletions

View File

@ -20,7 +20,9 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: ~/.local/share/virtualenvs path: |
~/.local/share/virtualenvs
Pipfile.lock
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }} key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |

View File

@ -26,7 +26,9 @@ jobs:
python-version: '3.x' python-version: '3.x'
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: ~/.local/share/virtualenvs path: |
~/.local/share/virtualenvs
Pipfile.lock
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }} key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
- uses: github/codeql-action/init@v2 - uses: github/codeql-action/init@v2
with: with:

View File

@ -18,7 +18,9 @@ jobs:
python-version: '3.x' python-version: '3.x'
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: ~/.local/share/virtualenvs path: |
~/.local/share/virtualenvs
Pipfile.lock
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }} key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
- name: Install pipenv - name: Install pipenv
run: python -m pip install --upgrade pipenv wheel run: python -m pip install --upgrade pipenv wheel