skip to Main Content

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
enter image description here

Could you please help me how to fix this?

4

Answers


  1. disable cache to solve this problem
    look for the line where you see
    cache: npm
    and comment it out

    Login or Signup to reply.
  2. Seems like the issue is coming from github cache actions.
    https://github.com/actions/cache/issues/820

    Login or Signup to reply.
  3. 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.

    Login or Signup to reply.
  4. 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'
      - name: Cache dependencies
        uses: actions/cache@v3
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
          restore-keys: |
              ${{ runner.os }}-pip-
              ${{ runner.os }}-
    

    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 by python using cache: 'pip' because the action/cache does the same but only gives warning on the server error

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search