Skip to content

Commit

Permalink
Fix: Add pip dependencies caching to speed up workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinavcode13 authored Jul 9, 2024
1 parent 27a5fd2 commit 4c8aaff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ubuntu20_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 4c8aaff

Please sign in to comment.