diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfb7e5142622..0d660de54f2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,18 +68,10 @@ jobs: if: ${{ matrix.needs-python }} with: python-version-file: '.python-version' - - name: Cache Python dependencies - if: ${{ matrix.needs-python }} - uses: actions/cache@v3 - env: - cache-name: warehouse-cache-pip - with: - path: ~/.cache/pip - key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }} - restore-keys: | - ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}- - ${{ runner.os }}-${{ github.job }}- - ${{ runner.os }}- + cache: 'pip' + cache-dependency-path: | + requirements.txt + requirements/*.txt - name: Install Python dependencies if: ${{ matrix.needs-python }} run: | @@ -90,19 +82,7 @@ jobs: if: ${{ matrix.needs-node }} with: node-version: 14.15.5 - - name: Cache Node dependencies - if: ${{ matrix.needs-node }} - uses: actions/cache@v2 - env: - cache-name: warehouse-cache-npm - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}- - ${{ runner.os }}-build-${{ github.job }}- - ${{ runner.os }}-build- - ${{ runner.os }}- + cache: 'npm' - name: Install Node dependencies if: ${{ matrix.needs-node }} run: npm ci