diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df6abe3..4dfeecb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,21 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r server/src/requirements.txt + pip install -r requirements.txt + + # Set AWS region and mock credentials + - name: Configure AWS Credentials for Tests + run: | + echo "Setting AWS region and mock credentials..." + export AWS_REGION=us-east-1 + export AWS_ACCESS_KEY_ID=fake_access_key + export AWS_SECRET_ACCESS_KEY=fake_secret_key + export AWS_DEFAULT_REGION=us-east-1 # Run tests and generate coverage report - name: Run tests with coverage run: | - export PYTHONPATH=$(pwd)/server/src # Fix: Set PYTHONPATH + export PYTHONPATH=$(pwd)/server/src pytest --cov=src/functions --cov-report=term-missing --cov-report=xml --cov-report=html # Upload coverage report as an artifact