Skip to content

Commit 622440a

Browse files
Limit execution of TPC-H non-Dask benchmarks (#1333)
1 parent 85ae969 commit 622440a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/tests.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
pull_request:
99
schedule:
1010
# Runs "At 00:01" (see https://crontab.guru)
11-
- cron: "1 0 * * *"
11+
- cron: "1 0 * * 0" # every Sunday (relevant for non-Dask TPC-H benchmarks)
12+
- cron: "1 0 * * 1-6" # every day except Sunday
1213
workflow_dispatch:
1314

1415
concurrency:
@@ -32,7 +33,7 @@ jobs:
3233
matrix:
3334
os: [ubuntu-latest]
3435
python-version: ["3.9"]
35-
pytest_args: [tests]
36+
pytest_args: [tests --ignore=tests/tpch]
3637
extra-env: [""]
3738
name-prefix: [tests]
3839
include:
@@ -60,7 +61,7 @@ jobs:
6061
os: ubuntu-latest
6162
name-prefix: snowflake
6263
extra-env: ci/environment-snowflake.yml
63-
- pytest_args: tests/tpch -m tpch_nondask
64+
- pytest_args: tests/tpch
6465
python-version: "3.9"
6566
os: ubuntu-latest
6667
extra-env: ci/environment-tpch-nondask.yml
@@ -109,10 +110,15 @@ jobs:
109110
run: |
110111
echo PYTEST_MARKERS=" and not workflows" >> $GITHUB_ENV
111112
112-
- name: Disable non-Dask TPCH benchmarks on most PRs
113+
- name: Disable non-Dask TPCH benchmarks on most PRs and on daily schedule (except Sundays)
113114
if: |
114-
github.event_name != 'schedule'
115-
&& !(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'tpch'))
115+
${{
116+
!contains(matrix.pytest_args, 'tpch_nondask')
117+
|| !(
118+
(github.event_name == 'schedule' || github.event.schedule == '1 0 * * 0')
119+
|| (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'tpch'))
120+
)
121+
}}
116122
run: |
117123
echo PYTEST_MARKERS="${{ env.PYTEST_MARKERS }} and not tpch_nondask" >> $GITHUB_ENV
118124

0 commit comments

Comments
 (0)