diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b69bd88224..99dda025b9 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -30,21 +30,16 @@ jobs: with: python-version: "3.10" - - name: Cache Python dependencies + - name: Cache dependencies uses: actions/cache@v4 with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + path: | + ~/.cache/pip + ~/.local/lib/python3.10/site-packages + ~/.paddleocr/ + key: ${{ runner.os }}-dependencies-${{ hashFiles('**/requirements.txt') }} restore-keys: | - ${{ runner.os }}-pip- - - - name: Cache PaddleOCR files - uses: actions/cache@v4 - with: - path: ~/.paddleocr/ - key: ${{ runner.os }}-paddleocr-${{ hashFiles('**/paddleocr.py') }} - restore-keys: | - ${{ runner.os }}-paddleocr- + ${{ runner.os }}-dependencies- - name: Install dependencies run: |