diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 44814c9..a81cb8d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -20,6 +20,15 @@ jobs: with: credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' + # Cache dependencies + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + # Install dependencies - name: Install dependencies run: | @@ -80,6 +89,15 @@ jobs: --format="value(status.url)") echo "::set-output name=url::$URL" echo "Image URL: $URL" + + # Cache dependencies + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }} + restore-keys: | + ${{ runner.os }}-pip- # Install dependencies - name: Install dependencies