I am trying to check the lint on the gitubaction. my github action steps are as below
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
Error screenshot Attached below
Could you please help me how to fix this?
4
Answers
disable cache to solve this problem
look for the line where you see
cache: npm
and comment it out
Seems like the issue is coming from github cache actions.
https://github.com/actions/cache/issues/820
The Cache service doesn’t seem to work. So you need to disable caching to bypass this issue. Remove the line
cache: 'pip'
and commit. You should be fine.I too faced the same problem. It is because of the
cache
server not responding that includes internal server error or any other.You can use
actions/cache@v3
instead of the automatic cache bypython
usingcache: 'pip'
because theaction/cache
does the same but only gives warning on the server error