From f56ee7c25dc5fb6a19d10fc3ea3f737cf43c6456 Mon Sep 17 00:00:00 2001 From: Everaldo Date: Wed, 28 Aug 2024 14:30:26 -0700 Subject: [PATCH] Test github action weekly run. --- .github/workflows/scheduled_tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/scheduled_tests.yml b/.github/workflows/scheduled_tests.yml index d95e46d..5ce9e21 100644 --- a/.github/workflows/scheduled_tests.yml +++ b/.github/workflows/scheduled_tests.yml @@ -5,6 +5,8 @@ on: schedule: # Scheduled trigger - cron: "15,45 14-23,0-1 * * 1-5" # At minutes 15 and 45 past every hour from 14:00 through 01:00 on every day-of-week from Monday through Friday. - cron: "15 7,13 * * 1-5" # At minute 15 past hour 7 and 13 on every day-of-week from Monday through Friday. + - cron: "0 14 * * 1" # At 14:00 on Monday (once a week). + - cron: "40 21 * * 3" # At 21:40 on Wednesday (once a week) - FOR TESTING. jobs: run_app_tests: @@ -45,6 +47,14 @@ jobs: pip install pytest boto3 pip install .venv/lib/python${{ matrix.python-version }}/site-packages/biothings/tests/slack_test_notification + - name: Set BYPASS_VERSION_CHECK for weekly run to bypass the version check + if: github.event.schedule == '0 14 * * 1' + run: echo "BYPASS_VERSION_CHECK=True" >> $GITHUB_ENV + + - name: Set BYPASS_VERSION_CHECK for weekly run to bypass the version check - FOR TESTING + if: github.event.schedule == '40 21 * * 3' + run: echo "BYPASS_VERSION_CHECK=True" >> $GITHUB_ENV + - name: Run pytest run: | source .venv/bin/activate