From 4203d1ffb80566802ef9901bed14d241a49d09bb Mon Sep 17 00:00:00 2001 From: henninggaertner Date: Tue, 12 Dec 2023 12:08:31 +0100 Subject: [PATCH] Add caching for python dependencies in ci.yml --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e65655cd6..d4a821462 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,15 @@ jobs: with: python-version: "3.11" + - name: Cache Python dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + !~/.cache/pip/log + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip