Skip to content

Commit a8fbf68

Browse files
committed
actions fix
1 parent a715c20 commit a8fbf68

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,40 @@ jobs:
2727
- name: Run lint check
2828
run: poetry run pre-commit run -a ${{ matrix.cmd }}
2929
pytest:
30+
services:
31+
zookeeper:
32+
image: bitnami/zookeeper
33+
ports:
34+
- 2181:2181
35+
env:
36+
ALLOW_ANONYMOUS_LOGIN: yes
37+
options: >-
38+
--health-cmd "echo mntr | nc -w 2 -q 2 localhost 2181"
39+
--health-interval 10s
40+
--health-timeout 5s
41+
--health-retries 5
42+
kafka:
43+
image: bitnami/kafka
44+
ports:
45+
- 9092:9092
46+
options: >-
47+
--health-cmd "kafka-broker-api-versions.sh --version"
48+
--health-interval 10s
49+
--health-timeout 5s
50+
--health-retries 5
51+
env:
52+
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
53+
ALLOW_PLAINTEXT_LISTENER: yes
54+
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092
55+
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
3056
permissions:
3157
checks: write
3258
pull-requests: write
3359
contents: write
3460
strategy:
3561
matrix:
3662
py_version: ["3.7", "3.8", "3.9", "3.10"]
37-
os: [ubuntu-latest, windows-latest]
63+
os: [ubuntu-latest]
3864
runs-on: "${{ matrix.os }}"
3965
steps:
4066
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)