From 3dd009adff6996499ea2be3420d2c6ddb077d4a8 Mon Sep 17 00:00:00 2001 From: Abhinav kumar <126642111+Abhinavcode13@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:58:17 +0530 Subject: [PATCH] Fix: Add pip dependencies caching to speed up workflow runs (#118) --- .github/workflows/ubuntu20_python.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ubuntu20_python.yml b/.github/workflows/ubuntu20_python.yml index 48f5e76..f4b7ee8 100644 --- a/.github/workflows/ubuntu20_python.yml +++ b/.github/workflows/ubuntu20_python.yml @@ -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