File tree Expand file tree Collapse file tree 4 files changed +111
-7
lines changed Expand file tree Collapse file tree 4 files changed +111
-7
lines changed Original file line number Diff line number Diff line change 9
9
- main
10
10
jobs :
11
11
build :
12
+ environment : integration
12
13
strategy :
13
14
matrix :
14
15
os :
15
16
- ubuntu-latest
16
- python :
17
- - " 3.12 "
17
+ storage :
18
+ - s3://tansu/
18
19
runs-on : ${{matrix.os}}
19
20
steps :
20
21
- uses : actions/checkout@v4
21
- - run : cp example.env .env
22
22
- run : docker compose --progress plain up --no-color --quiet-pull --detach
23
+ env :
24
+ TANSU_IMAGE : ghcr.io/tansu-io/tansu:main
25
+ CLUSTER_ID : kafka-python-integration
26
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
27
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
28
+ AWS_DEFAULT_REGION : auto
29
+ AWS_ENDPOINT : http://minio:9000
30
+ AWS_ALLOW_HTTP : true
31
+ STORAGE_ENGINE : ${{matrix.storage}}
23
32
- run : docker compose exec minio /usr/bin/mc ready local
24
- - run : docker compose exec minio /usr/bin/mc alias set local http://localhost:9000 minioadmin minioadmin
33
+ - run : docker compose exec minio /usr/bin/mc alias set local http://localhost:9000 ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25
34
- run : docker compose exec minio /usr/bin/mc mb local/tansu
26
35
- uses : astral-sh/setup-uv@v5
27
- with :
28
- python-version : ${{matrix.python}}
29
- - run : uv pip install kafka-python
36
+ - run : uv sync --all-groups
Original file line number Diff line number Diff line change
1
+ 3.13
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ name = " example-kafka-python"
3
+ version = " 0.1.0"
4
+ description = " Add your description here"
5
+ readme = " README.md"
6
+ requires-python = " >=3.13"
7
+ dependencies = [
8
+ " kafka-python>=2.0.5" ,
9
+ ]
10
+
11
+ [dependency-groups ]
12
+ dev = [
13
+ " pytest>=8.3.4" ,
14
+ ]
You can’t perform that action at this time.
0 commit comments