main.yml 658 B

1234567891011121314151617181920212223
  1. - uses: actions/cache@v1
  2. if: startsWith(runner.os, 'Linux')
  3. with:
  4. path: ~/.cache/pip
  5. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  6. restore-keys: |
  7. ${{ runner.os }}-pip-
  8. - uses: actions/cache@v1
  9. if: startsWith(runner.os, 'macOS')
  10. with:
  11. path: ~/Library/Caches/pip
  12. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  13. restore-keys: |
  14. ${{ runner.os }}-pip-
  15. - uses: actions/cache@v1
  16. if: startsWith(runner.os, 'Windows')
  17. with:
  18. path: ~\AppData\Local\pip\Cache
  19. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  20. restore-keys: |
  21. ${{ runner.os }}-pip-