From 25df4199d6bd31d5d53f6d438a42df0f57e12278 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Jun 2026 10:05:00 +0000 Subject: [PATCH 1/2] ci: trigger scheduled tests on template/test/workflow changes Run the Scheduled tests workflow on pull requests that modify the project template files, the template e2e tests, or the workflow itself, so changes affecting these tests are validated before merge. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_012gPGGfycEgDsLuVv15rAjt --- .github/workflows/on_schedule_tests.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_schedule_tests.yaml b/.github/workflows/on_schedule_tests.yaml index 8658f057e8..89b2cc70ee 100644 --- a/.github/workflows/on_schedule_tests.yaml +++ b/.github/workflows/on_schedule_tests.yaml @@ -8,9 +8,20 @@ on: schedule: - cron: '0 1 * * 1-5' + # Runs on pull requests that touch the template files, the template e2e tests, + # or this workflow itself, so that changes affecting the scheduled tests are + # validated before they are merged. + pull_request: + paths: + - 'src/crawlee/project_template/**' + - 'tests/e2e/**' + - '.github/workflows/on_schedule_tests.yaml' + concurrency: - group: scheduled-tests - cancel-in-progress: false + # Scope the group per event and ref so pull request runs cancel their own + # superseded runs without blocking the nightly scheduled run (and vice versa). + group: scheduled-tests-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read From a2ea7a42a40af97f09ac5eb56576368740cd6b81 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Jun 2026 10:49:37 +0000 Subject: [PATCH 2/2] ci: keep original concurrency group for scheduled tests Revert the concurrency change; keep only the new pull_request triggers. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_012gPGGfycEgDsLuVv15rAjt --- .github/workflows/on_schedule_tests.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/on_schedule_tests.yaml b/.github/workflows/on_schedule_tests.yaml index 89b2cc70ee..b44f624180 100644 --- a/.github/workflows/on_schedule_tests.yaml +++ b/.github/workflows/on_schedule_tests.yaml @@ -18,10 +18,8 @@ on: - '.github/workflows/on_schedule_tests.yaml' concurrency: - # Scope the group per event and ref so pull request runs cancel their own - # superseded runs without blocking the nightly scheduled run (and vice versa). - group: scheduled-tests-${{ github.event_name }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: scheduled-tests + cancel-in-progress: false permissions: contents: read