[workflows]: Add AWS envvars
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -31,12 +31,21 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
# Run tests and generate coverage report
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
run: |
|
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
|
pytest --cov=src/functions --cov-report=term-missing --cov-report=xml --cov-report=html
|
||||||
|
|
||||||
# Upload coverage report as an artifact
|
# Upload coverage report as an artifact
|
||||||
|
Reference in New Issue
Block a user