Skip to content

Commit 25ed6c8

Browse files
committed
workflow
1 parent 045d443 commit 25ed6c8

File tree

4 files changed

+111
-7
lines changed

4 files changed

+111
-7
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,28 @@ on:
99
- main
1010
jobs:
1111
build:
12+
environment: integration
1213
strategy:
1314
matrix:
1415
os:
1516
- ubuntu-latest
16-
python:
17-
- "3.12"
17+
storage:
18+
- s3://tansu/
1819
runs-on: ${{matrix.os}}
1920
steps:
2021
- uses: actions/checkout@v4
21-
- run: cp example.env .env
2222
- 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}}
2332
- 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 }}
2534
- run: docker compose exec minio /usr/bin/mc mb local/tansu
2635
- 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

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
]

uv.lock

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)