Skip to content

Commit e028890

Browse files
committed
Python CI fix: add CRDB Docker
1 parent 5b9047d commit e028890

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/python-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ jobs:
2323
python -m pip install --upgrade pip
2424
pip install -e .[dev]
2525
26+
- name: Start CockroachDB (latest)
27+
run: |
28+
docker run -d \
29+
--name crdb \
30+
-p 26257:26257 \
31+
-p 8080:8080 \
32+
cockroachdb/cockroach:latest \
33+
start-single-node --insecure
34+
35+
- name: Set CRDB_URL environment variable
36+
run: echo "CRDB_URL=cockroachdb://root@localhost:26257/defaultdb?sslmode=disable" >> $GITHUB_ENV
37+
38+
- name: Wait for DB to be ready
39+
run: sleep 5
40+
2641
- name: Lint with ruff (non-blocking)
2742
run: ruff check . || true
2843

@@ -32,4 +47,5 @@ jobs:
3247
- name: Run tests
3348
run: pytest tests/
3449
env:
50+
CRDB_URL: postgresql://root@localhost:26257/defaultdb?sslmode=disable
3551
MCP_DEMO_MODE: "true"

0 commit comments

Comments
 (0)