Skip to content

Commit 4152439

Browse files
committed
Add Superset integration CI job
1 parent 6fd2a10 commit 4152439

1 file changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/python-ci.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ name: Python CI
33

44
on:
55
push:
6-
branches: [ "main", "dev" ]
76
pull_request:
87
branches: [ "main", "dev" ]
98

109
jobs:
1110
build:
1211
runs-on: ubuntu-latest
13-
12+
1413
env:
1514
DATASTORE_EMULATOR_HOST: "localhost:8081"
1615

@@ -53,3 +52,56 @@ jobs:
5352

5453
- name: Run tests
5554
run: uv run pytest
55+
56+
superset-integration:
57+
runs-on: ubuntu-latest
58+
59+
env:
60+
SUPERSET_CONFIG: tests.integration_tests.superset_test_config
61+
SUPERSET_TESTENV: "true"
62+
63+
steps:
64+
- name: Checkout package
65+
uses: actions/checkout@v4
66+
with:
67+
path: python-datastore-sqlalchemy
68+
69+
- name: Checkout Superset
70+
uses: actions/checkout@v4
71+
with:
72+
repository: apache/superset
73+
ref: master
74+
path: superset
75+
76+
- name: Set up Python
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: '3.11'
80+
81+
- name: Install uv
82+
uses: astral-sh/setup-uv@v6
83+
with:
84+
enable-cache: true
85+
86+
- name: Install Superset system dependencies
87+
run: |
88+
sudo apt-get update
89+
sudo apt-get install -y libldap2-dev libsasl2-dev libssl-dev
90+
91+
- name: Install Superset dependencies
92+
working-directory: superset
93+
run: |
94+
uv venv .venv --python 3.11
95+
uv pip install -r requirements/development.txt
96+
uv pip install -e ../python-datastore-sqlalchemy
97+
98+
- name: Initialize Superset test database
99+
working-directory: superset
100+
run: |
101+
.venv/bin/superset db upgrade
102+
.venv/bin/superset init
103+
.venv/bin/superset load-test-users
104+
105+
- name: Run Superset datastore integration tests
106+
working-directory: superset
107+
run: .venv/bin/pytest -vv tests/integration_tests/db_engine_specs/datastore_tests.py

0 commit comments

Comments
 (0)