setup-python: May I ask why? pip cache is not found
jobs:
build:
runs-on: ${{ matrix.os }}
environment: build
permissions:
contents: write
strategy:
matrix:
os: [ macos-12 ]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: "x64"
cache: 'pip'
- run: |
pip install -r requirements.txt
There is no cache for each build
I donโt know why. Every build indicates that there is no cache
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 15 (3 by maintainers)
Thank you very much for your answer. Iโm reading the information you sent
I have understood the reason. Thank you very much for your help
@duolabmeng6 ๐ Root cause of your problem is that you are running your workflow each time on a different branch (or tag) and there was not a single run on the
main
branch. You can read about restrictions for accessing a cache here.