@@ -457,7 +457,7 @@ jobs:
457457 working-directory: __tests__/fixtures/requirements-txt-project
458458 test-restore-cache-requirements-txt :
459459 runs-on : ubuntu-latest
460- needs : test-setup-cache
460+ needs : test-setup-cache-requirements-txt
461461 steps :
462462 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
463463 with :
@@ -525,6 +525,78 @@ jobs:
525525 env :
526526 CACHE_HIT : ${{ steps.restore.outputs.cache-hit }}
527527
528+ test-setup-cache-save-cache-false :
529+ runs-on : ubuntu-latest
530+ steps :
531+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
532+ with :
533+ persist-credentials : false
534+ - name : Setup with cache
535+ uses : ./
536+ with :
537+ enable-cache : true
538+ save-cache : false
539+ cache-suffix : ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-save-cache-false
540+ - run : uv sync
541+ working-directory : __tests__/fixtures/uv-project
542+ shell : bash
543+ test-restore-cache-save-cache-false :
544+ runs-on : ubuntu-latest
545+ needs : test-setup-cache-save-cache-false
546+ steps :
547+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
548+ with :
549+ persist-credentials : false
550+ - name : Restore with cache
551+ id : restore
552+ uses : ./
553+ with :
554+ enable-cache : true
555+ cache-suffix : ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-save-cache-false
556+ - name : Cache was not hit
557+ run : |
558+ if [ "$CACHE_HIT" == "true" ]; then
559+ exit 1
560+ fi
561+ env :
562+ CACHE_HIT : ${{ steps.restore.outputs.cache-hit }}
563+
564+ test-setup-cache-restore-cache-false :
565+ runs-on : ubuntu-latest
566+ steps :
567+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
568+ with :
569+ persist-credentials : false
570+ - name : Setup with cache
571+ uses : ./
572+ with :
573+ enable-cache : true
574+ cache-suffix : ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-restore-cache-false
575+ - run : uv sync
576+ working-directory : __tests__/fixtures/uv-project
577+ shell : bash
578+ test-restore-cache-restore-cache-false :
579+ runs-on : ubuntu-latest
580+ needs : test-setup-cache-restore-cache-false
581+ steps :
582+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
583+ with :
584+ persist-credentials : false
585+ - name : Restore with cache
586+ id : restore
587+ uses : ./
588+ with :
589+ enable-cache : true
590+ restore-cache : false
591+ cache-suffix : ${{ github.run_id }}-${{ github.run_attempt }}-test-setup-cache-restore-cache-false
592+ - name : Cache was not hit
593+ run : |
594+ if [ "$CACHE_HIT" == "true" ]; then
595+ exit 1
596+ fi
597+ env :
598+ CACHE_HIT : ${{ steps.restore.outputs.cache-hit }}
599+
528600 test-cache-local :
529601 strategy :
530602 matrix :
@@ -747,6 +819,10 @@ jobs:
747819 - test-restore-cache-requirements-txt
748820 - test-setup-cache-dependency-glob
749821 - test-restore-cache-dependency-glob
822+ - test-setup-cache-save-cache-false
823+ - test-restore-cache-save-cache-false
824+ - test-setup-cache-restore-cache-false
825+ - test-restore-cache-restore-cache-false
750826 - test-setup-cache-local
751827 - test-restore-cache-local
752828 - test-tilde-expansion-cache-local-path
0 commit comments