Skip to content

add known checksums for rye 0.14.0 #81

add known checksums for rye 0.14.0

add known checksums for rye 0.14.0 #81

Workflow file for this run

name: 'test-cache'
on:
pull_request:
push:
branches:
- main
jobs:
test-setup-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Simluate rye-project
run: cp -r ./__tests__/fixtures/rye-project/* .
- name: Setup with cache
uses: ./
with:
version: '0.11.0'
enable-cache: true
cache-key: ${{ github.run_id }}-${{ github.run_attempt }}
- run: rye sync
test-restore-cache:
runs-on: ubuntu-latest
needs: test-setup-cache
steps:
- uses: actions/checkout@v4
- name: Simluate rye-project
run: cp -r ./__tests__/fixtures/rye-project/* .
- name: Restore with cache
id: restore
uses: ./
with:
version: '0.11.0'
enable-cache: true
cache-key: ${{ github.run_id }}-${{ github.run_attempt }}
- name: Cache was hit
run: |
if [ "$CACHE_HIT" != "true" ]; then
exit 1
fi
env:
CACHE_HIT: ${{ steps.restore.outputs.cache-hit }}