Skip to content

Commit 167f42b

Browse files
Add basic github action for regression testing (#81)
1 parent 5b38bc5 commit 167f42b

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/integration.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Integration test
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'README.md'
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
include:
20+
- { python-version: '3.12', region: us-west-1, access-key-id: '000000000001'}
21+
- { python-version: '3.12', region: us-east-1, access-key-id: 'test'}
22+
- { python-version: '3.11', region: us-east-1, access-key-id: 'test'}
23+
- { python-version: '3.10', region: us-east-1, access-key-id: 'test'}
24+
- { python-version: '3.9', region: us-east-1, access-key-id: 'test'}
25+
- { python-version: '3.8', region: us-east-1, access-key-id: 'test'}
26+
27+
env:
28+
AWS_ACCESS_KEY_ID: ${{ matrix.access-key-id }}
29+
AWS_REGION: ${{ matrix.region }}
30+
AWS_DEFAULT_REGION: ${{ matrix.region }}
31+
AWS_SECRET_ACCESS_KEY: test
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Setup Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: '${{ matrix.python-version }}'
40+
41+
- name: Install localstack CLI
42+
run: pip install localstack
43+
44+
- name: Install deps
45+
run: pip install '.[ver1]'
46+
47+
- name: Check aws-cli version
48+
run: |
49+
aws --version
50+
awslocal --version
51+
which aws
52+
which awslocal
53+
54+
- name: Start and wait for localstack (Community)
55+
timeout-minutes: 10
56+
run: |
57+
docker pull localstack/localstack:latest
58+
localstack start -d
59+
localstack wait -t 30
60+
61+
- name: Test usage of awslocal
62+
run: |
63+
awslocal lambda list-functions
64+
awslocal s3api list-buckets
65+
awslocal s3 ls

0 commit comments

Comments
 (0)