Closed kiyoon closed 5 months ago
Hi, I actually figured out that caching dependencies doesn't actually install them so I still had to install them.
I fixed it by removing the line if: steps.setup-python.outputs.cache-hit != 'true'
.
It didn't give many benefits in speed doing this though.
I'm sorry for the confusion on my side.
Problem
In setup-python actions https://github.com/actions/setup-python, you can cache the requirements and it will restore the python packages in the next run.
However, it won't restore the commands stored in the
bin
folder. Thus I can't execute mike with the cached installation afterwards.Solution
I want to make mike executable with
python -m mike
, just likepython -m mkdocs
.Example GitHub Actions