Skip to content

Commit 5162ac0

Browse files
authored
chore: ci only run local engine integration tests (#1590)
1 parent 4cafee1 commit 5162ac0

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

.circleci/continue_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
- store_artifacts:
174174
path: /tmp/airflow_logs
175175

176-
engine_adapter_integration_tests:
176+
engine_adapter_integration_local_only_tests:
177177
machine:
178178
image: ubuntu-2204:2022.10.2
179179
docker_layer_caching: true
@@ -194,7 +194,7 @@ jobs:
194194
command: sleep 10
195195
- run:
196196
name: Run tests
197-
command: make core_engine_it_test
197+
command: make core_engine_it_test_local_only
198198
no_output_timeout: 15m
199199

200200
workflows:
@@ -214,7 +214,7 @@ workflows:
214214
branches:
215215
only:
216216
- main
217-
- engine_adapter_integration_tests:
217+
- engine_adapter_integration_local_only_tests:
218218
context: engine_adapter_integration
219219
requires:
220220
- style_and_unit_tests

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ core-it-test:
3030
core_engine_it_test:
3131
pytest -m "engine_integration"
3232

33+
core_engine_it_test_local_only:
34+
pytest -m "engine_integration_local"
35+
3336
core_engine_it_test_docker:
3437
docker-compose -f ./tests/core/engine_adapter/docker-compose.yaml up -d
3538

tests/core/engine_adapter/test_integration.py

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,42 @@ def config() -> Config:
195195
@pytest.fixture(
196196
params=[
197197
"duckdb",
198-
pytest.param("postgres", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
199-
pytest.param("mysql", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
198+
pytest.param(
199+
"postgres",
200+
marks=[
201+
pytest.mark.integration,
202+
pytest.mark.engine_integration,
203+
pytest.mark.engine_integration_local,
204+
],
205+
),
206+
pytest.param(
207+
"mysql",
208+
marks=[
209+
pytest.mark.integration,
210+
pytest.mark.engine_integration,
211+
pytest.mark.engine_integration_local,
212+
],
213+
),
214+
pytest.param(
215+
"mssql",
216+
marks=[
217+
pytest.mark.integration,
218+
pytest.mark.engine_integration,
219+
pytest.mark.engine_integration_local,
220+
],
221+
),
222+
pytest.param(
223+
"trino",
224+
marks=[
225+
pytest.mark.integration,
226+
pytest.mark.engine_integration,
227+
pytest.mark.engine_integration_local,
228+
],
229+
),
200230
pytest.param("bigquery", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
201231
pytest.param("databricks", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
202232
pytest.param("redshift", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
203233
pytest.param("snowflake", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
204-
pytest.param("mssql", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
205-
pytest.param("trino", marks=[pytest.mark.integration, pytest.mark.engine_integration]),
206234
]
207235
)
208236
def engine_adapter(request, config) -> EngineAdapter:

0 commit comments

Comments
 (0)