rrainn / dynamodb-action

📦 GitHub Action - DynamoDB Local GitHub Action
https://github.com/marketplace/actions/start-dynamodb-in-github-actions
MIT License
51 stars 14 forks source link

Credentials not found in github action #12

Open gr8temi opened 2 months ago

gr8temi commented 2 months ago

I have a pipeline like this

name: "Lint and Test"
description: "Run linters"

runs:
  using: "composite"
  steps:
    - name: Check out code
      uses: actions/checkout@v3

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: "3.11"

    - name: Setup DynamoDB Local
        uses: rrainn/dynamodb-action@v4.0.0

    - name: Set up cache for Poetry dependencies
      id: cache-poetry
      uses: actions/cache@v3
      with:
        path: |
          ~/.cache/pypoetry/cache
          ~/.cache/pypoetry/artifacts
          .venv
        key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
        restore-keys: |
          ${{ runner.os }}-poetry-

    - name: Install Poetry
      run: |
        pip install poetry
      shell: bash

    - name: Install dependencies
      run: |
        poetry lock --no-update 
        poetry install --no-interaction --no-ansi
      shell: bash

    - name: Run linters
      run: |
        poetry run isort .
        poetry run black .
        poetry run pylint **/*.py
        poetry run pytest
      shell: bash

But when the test runs I keep getting this error ERROR tests/test_webhook.py::test_webhook_decode_token_failed - pynamodb.exceptions.TableError: Unable to describe table: Unable to locate credentials

How best do I run the pipeline

fishcharlie commented 2 months ago

You should be able to use dummy credentials. Doesn't matter what you pass in, it just has to be something.