-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.31 KB
/
Copy pathtest.yml
File metadata and controls
64 lines (52 loc) · 1.31 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Python LocalStack Client / Run Test
on:
pull_request:
paths:
- .github/workflows/test.yml
- localstack-sdk-python/**
- tests/**
- packages/**
push:
branches:
- main
workflow_dispatch:
jobs:
test_python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install project
run: |
make install-dev
- name: Install lstk
run: |
npm install -g @localstack/lstk
- name: Pull image
run: |
docker pull localstack/localstack-pro
# lstk defaults to the aws emulator with image localstack/localstack-pro:latest,
# so no config file is needed here.
- name: Start Localstack
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
LOCALSTACK_DEBUG: "1"
LOCALSTACK_DISABLE_EVENTS: "1"
run: |
lstk start --timeout 2m
- name: Run Python Tests
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
run: |
make test
- name: Stop Localstack
if: always()
run: |
lstk logs
lstk stop