Skip to content

Commit

Permalink
Disable automated tests on PRs and run them only once per week (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait authored Aug 20, 2024
1 parent d216c83 commit 49679fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ on:
- main
tags:
- "*"
pull_request:
schedule:
# Runs "At 00:01" (see https://crontab.guru)
- cron: "1 0 * * 0" # every Sunday (relevant for non-Dask TPC-H benchmarks)
- cron: "1 0 * * 1-6" # every day except Sunday
- cron: "1 0 * * 0" # every Sunday
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -112,9 +110,8 @@ jobs:
- name: Disable non-Dask TPCH benchmarks on most PRs and on daily schedule (except Sundays)
if: |
matrix.name_prefix != 'tpch' ||
(github.event_name != 'schedule' || github.event.schedule != '1 0 * * 0') &&
(github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'tpch'))
matrix.name_prefix != 'tpch'
|| (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'tpch'))
run: |
echo PYTEST_MARKERS="${{ env.PYTEST_MARKERS }} and not tpch_nondask" >> $GITHUB_ENV
Expand Down

0 comments on commit 49679fc

Please sign in to comment.