Skip to content

Commit f7d5d98

Browse files
committed
Increase timeout time for individual tests. Do tests with Github runner + azure instance
1 parent ff61732 commit f7d5d98

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/test_cloud.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,49 @@
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
57
pull_request:
6-
branches:
7-
- '*_cloud'
8+
branches: main
89
workflow_dispatch:
910

1011
jobs:
1112
cloud_smt_tests:
1213
name: ClickHouse Cloud SharedMergeTree Tests
1314
runs-on: ubuntu-latest
15+
timeout-minutes: 90
16+
17+
strategy:
18+
max-parallel: 1
19+
fail-fast: false
20+
matrix:
21+
python-version: ['3.9', '3.10', '3.11', '3.12']
1422

1523
env:
1624
PYTHONPATH: dbt
17-
DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
18-
DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
25+
DBT_CH_TEST_HOST: ${{ secrets.DBT_TESTS_CLOUD_HOST_SMT }}
26+
DBT_CH_TEST_PASSWORD: ${{ secrets.DBT_TESTS_CLOUD_PASSWORD_SMT }}
1927
DBT_CH_TEST_CLUSTER_MODE: true
2028
DBT_CH_TEST_CLOUD: true
2129

2230
steps:
2331
- name: Checkout
2432
uses: actions/checkout@v3
2533

26-
- name: Setup Python 3.11
34+
- name: Setup Python ${{ matrix.python-version }}
2735
uses: actions/setup-python@v4
2836
with:
29-
python-version: '3.11'
37+
python-version: ${{ matrix.python-version }}
3038

3139
- name: Install requirements
3240
run: pip3 install -r dev_requirements.txt
3341

3442
- name: Run HTTP tests
3543
env:
3644
DBT_CH_TEST_PORT: 8443
37-
run: pytest tests
45+
run: pytest tests --timeout=240
3846

3947
- name: Run Native tests
4048
env:
4149
DBT_CH_TEST_PORT: 9440
42-
run: pytest tests
50+
run: pytest tests --timeout=240

0 commit comments

Comments
 (0)