From d21583f97a9872bcd1aa5ca3a2b891c995588186 Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Mon, 1 Jul 2024 11:52:57 +0200 Subject: [PATCH] Caching dependencies Prevents them from being reinstalled all the time --- .github/workflows/python-package.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 10fef59..b37d1b5 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -24,6 +24,13 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + - name: Cache pip + 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