Skip to content

Commit 12506bd

Browse files
committed
save_db_structure
1 parent ba00b7e commit 12506bd

File tree

7 files changed

+317
-143
lines changed

7 files changed

+317
-143
lines changed

.github/workflows/ci_cd.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ permissions:
1111
pages: write
1212
id-token: write
1313

14-
1514
jobs:
1615
build:
1716
runs-on: ubuntu-22.04
@@ -48,22 +47,6 @@ jobs:
4847
runs-on: ubuntu-22.04
4948
permissions: write-all
5049
needs: [ build ]
51-
52-
services:
53-
clickhouse:
54-
image: clickhouse/clickhouse-server:23.4
55-
env:
56-
CLICKHOUSE_USER: thedus_tests
57-
CLICKHOUSE_PASSWORD: thedus_tests
58-
ports:
59-
- 9000:9000
60-
- 8123:8123
61-
options: >-
62-
--health-cmd "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"
63-
--health-interval 10s
64-
--health-timeout 5s
65-
--health-retries 5
66-
6750
strategy:
6851
fail-fast: false
6952
matrix:
@@ -78,6 +61,17 @@ jobs:
7861
- name: Install dependencies
7962
run: uv sync --dev
8063

64+
- uses: hoverkraft-tech/compose-action@v2.0.2
65+
with:
66+
services: |
67+
clickhouse
68+
up-flags: "-d"
69+
70+
- uses: iFaxity/wait-on-action@v1.2.1
71+
with:
72+
resource: http://localhost:8123
73+
timeout: 30000
74+
8175
- name: Download thedus dist
8276
uses: actions/download-artifact@v4
8377
with:

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ version: '3.8'
22

33
services:
44
clickhouse:
5-
image: clickhouse/clickhouse-server:23.4.2.11-alpine
5+
image: clickhouse/clickhouse-server:25.4.2.31
66
container_name: thedus_clickhouse
7+
environment:
8+
CLICKHOUSE_DB: thedus_tests
9+
CLICKHOUSE_USER: thedus_tests
10+
CLICKHOUSE_PASSWORD: thedus_tests
711
logging:
812
driver: none
913
ports:

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ readme = "README.md"
99
requires-python = ">=3.9, < 3.14"
1010
dependencies = [
1111
"rich>=13.9, < 14",
12-
"typer>=0.15, < 0.16",
13-
"clickhouse-driver>=0.2.9, < 0.3",
14-
"ripley==0.1.0b0"
12+
"typer>=0.15, < 1",
13+
"clickhouse-driver>=0.2.9, < 1",
14+
"ripley==0.3.0a0",
15+
"textual>=3.1.1, < 4.0",
1516
]
1617

1718
classifiers = [
@@ -41,8 +42,8 @@ build-backend = "setuptools.build_meta"
4142

4243
[dependency-groups]
4344
dev = [
44-
"ruff>=0.11.4, <1",
45-
"parameterized==0.9.0, < 1",
45+
"ruff>=0.9.1, <1",
46+
"parameterized==0.9.0",
4647
"pytest>=8.3.4, <9",
4748
]
4849

tests/migrations/.gitignore

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

0 commit comments

Comments
 (0)