Skip to content

Commit b8932e8

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

1 file changed

Lines changed: 55 additions & 2 deletions

File tree

.github/workflows/python-ci.yaml

Lines changed: 55 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,57 @@ 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: splasky/superset
73+
ref: master
74+
token: ${{ secrets.SUPERSET_REPOSITORY_TOKEN || github.token }}
75+
path: superset
76+
77+
- name: Set up Python
78+
uses: actions/setup-python@v5
79+
with:
80+
python-version: '3.11'
81+
82+
- name: Install uv
83+
uses: astral-sh/setup-uv@v6
84+
with:
85+
enable-cache: true
86+
87+
- name: Install Superset system dependencies
88+
run: |
89+
sudo apt-get update
90+
sudo apt-get install -y libldap2-dev libsasl2-dev libssl-dev
91+
92+
- name: Install Superset dependencies
93+
working-directory: superset
94+
run: |
95+
uv venv .venv --python 3.11
96+
uv pip install -r requirements/development.txt
97+
uv pip install -e ../python-datastore-sqlalchemy
98+
99+
- name: Initialize Superset test database
100+
working-directory: superset
101+
run: |
102+
.venv/bin/superset db upgrade
103+
.venv/bin/superset init
104+
.venv/bin/superset load-test-users
105+
106+
- name: Run Superset datastore integration tests
107+
working-directory: superset
108+
run: .venv/bin/pytest -vv tests/integration_tests/db_engine_specs/datastore_tests.py

0 commit comments

Comments
 (0)