Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace custom cache step with config #11572

Merged
merged 2 commits into from Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 5 additions & 25 deletions .github/workflows/ci.yml
Expand Up @@ -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: |
Expand All @@ -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
Expand Down