-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.06 KB
/
lambda_tests.yml
File metadata and controls
46 lines (39 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Lambda Function Tests
on:
push:
branches:
- main
paths:
- 'lambda_functions/**'
- 'tests/**'
- '.github/workflows/lambda_tests.yml'
pull_request:
branches:
- main
paths:
- 'lambda_functions/**'
- 'tests/**'
- '.github/workflows/lambda_tests.yml'
jobs:
test-lambda-functions:
name: Test Lambda Functions
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set fake AWS credentials
run: |
echo "AWS_ACCESS_KEY_ID=testing" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=testing" >> $GITHUB_ENV
echo "AWS_REGION=eu-central-1" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Run tests
run: |
pytest tests/