From 7748ae8d0fe20251050bee2df9614e6d8669a600 Mon Sep 17 00:00:00 2001 From: Rojo Date: Thu, 2 Nov 2023 03:54:57 +0000 Subject: [PATCH] Caching dependencies in test action --- .github/workflows/test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e517268..3b7b462 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,6 +18,13 @@ jobs: with: python-version: 3.12 + - name: Cache pip dependencies + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: ${{ runner.os }}-pip- + - name: Install dependencies run: pip install -r requirements.txt