Skip to content

Commit 92f9202

Browse files
committed
Bring back tests against cloud env
1 parent 87bbe8e commit 92f9202

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/test_cloud.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,30 @@
22
name: "test_cloud"
33

44
on: # yamllint disable-line rule:truthy
5+
schedule:
6+
- cron: '0 0 * * *' # nightly run every day at 00:00 UTC
7+
pull_request:
8+
branches: main
59
push:
6-
branches:
7-
- '*_cloud'
10+
branches-ignore:
11+
- '*_test'
12+
- '*_dev'
13+
paths-ignore:
14+
- '**.md'
15+
- 'LICENSE'
816
workflow_dispatch:
917

1018
jobs:
1119
cloud_smt_tests:
1220
name: ClickHouse Cloud SharedMergeTree Tests
1321
runs-on: ubuntu-latest
22+
timeout-minutes: 90
23+
24+
strategy:
25+
max-parallel: 1
26+
fail-fast: false
27+
matrix:
28+
python-version: ['3.9', '3.10', '3.11', '3.12']
1429

1530
env:
1631
PYTHONPATH: dbt
@@ -23,20 +38,20 @@ jobs:
2338
- name: Checkout
2439
uses: actions/checkout@v3
2540

26-
- name: Setup Python 3.11
41+
- name: Setup Python ${{ matrix.python-version }}
2742
uses: actions/setup-python@v4
2843
with:
29-
python-version: '3.11'
44+
python-version: ${{ matrix.python-version }}
3045

3146
- name: Install requirements
3247
run: pip3 install -r dev_requirements.txt
3348

3449
- name: Run HTTP tests
3550
env:
3651
DBT_CH_TEST_PORT: 8443
37-
run: pytest tests
52+
run: pytest tests --timeout=120
3853

3954
- name: Run Native tests
4055
env:
4156
DBT_CH_TEST_PORT: 9440
42-
run: pytest tests
57+
run: pytest tests --timeout=120

0 commit comments

Comments
 (0)