From cbdabb4f67479347a3a925c805b91fbf16e1811d Mon Sep 17 00:00:00 2001 From: "Sup#2.0" <102817779+Sup2point0@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:32:47 +0100 Subject: [PATCH] add workflow caching --- .github/workflows/ai-bot.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai-bot.yml b/.github/workflows/ai-bot.yml index ac1af61..7563e51 100644 --- a/.github/workflows/ai-bot.yml +++ b/.github/workflows/ai-bot.yml @@ -29,7 +29,14 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.12' - + + - name: 'Python – restore cache' + uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: ${{ runner.os }}-pip- + - name: 'Python – install packages' run: | python -m pip install --upgrade pip