From c42fdab74ddd88d44be29267cfebc0cf66ba7422 Mon Sep 17 00:00:00 2001 From: Waket Zheng Date: Thu, 6 Jun 2024 17:11:27 +0800 Subject: [PATCH] Add cache action to ci --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8d441d..7346003 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,12 @@ jobs: steps: - name: Start MySQL run: sudo systemctl start mysql.service + - uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + ${{ runner.os }}-pip- - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: