@@ -3,14 +3,13 @@ name: Python CI
33
44on :
55 push :
6- branches : [ "main", "dev" ]
76 pull_request :
87 branches : [ "main", "dev" ]
98
109jobs :
1110 build :
1211 runs-on : ubuntu-latest
13-
12+
1413 env :
1514 DATASTORE_EMULATOR_HOST : " localhost:8081"
1615
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 dependencies
88+ working-directory : superset
89+ run : |
90+ uv venv .venv --python 3.11
91+ uv pip install -r requirements/development.txt
92+ uv pip install -e ../python-datastore-sqlalchemy -c requirements/base.txt
93+
94+ - name : Initialize Superset test database
95+ working-directory : superset
96+ run : |
97+ .venv/bin/superset db upgrade
98+ .venv/bin/superset init
99+ .venv/bin/superset load-test-users
100+
101+ - name : Run Superset datastore integration tests
102+ working-directory : superset
103+ run : .venv/bin/pytest -vv tests/integration_tests/db_engine_specs/datastore_tests.py
0 commit comments