|
5 | 5 | branches: [main] |
6 | 6 | merge_group: # Run tests in merge queue |
7 | 7 | types: [checks_requested] |
| 8 | + schedule: |
| 9 | + - cron: '0 6 * * *' # Daily full run at 6:00 AM UTC |
8 | 10 |
|
9 | 11 | jobs: |
10 | 12 | authorization-check: |
|
18 | 20 | id: auth |
19 | 21 | uses: strands-agents/devtools/authorization-check@main |
20 | 22 | with: |
21 | | - skip-check: ${{ github.event_name == 'merge_group' }} |
| 23 | + skip-check: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' }} |
22 | 24 | username: ${{ github.event.pull_request.user.login || 'invalid' }} |
23 | 25 | allowed-roles: 'maintain,triage,write,admin' |
24 | 26 |
|
|
33 | 35 | has-tests: ${{ steps.set-matrix.outputs.has-tests }} |
34 | 36 | steps: |
35 | 37 | - name: Detect changed paths |
36 | | - if: github.event_name != 'merge_group' |
| 38 | + if: github.event_name == 'pull_request_target' |
37 | 39 | uses: dorny/paths-filter@v3 |
38 | 40 | id: filter |
39 | 41 | with: |
|
77 | 79 | - name: Build test matrix |
78 | 80 | id: set-matrix |
79 | 81 | env: |
80 | | - IS_MERGE_GROUP: ${{ github.event_name == 'merge_group' }} |
| 82 | + IS_MERGE_GROUP: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' }} |
81 | 83 | FILTER_RUN_ALL: ${{ steps.filter.outputs.run-all }} |
82 | 84 | FILTER_MODELS: ${{ steps.filter.outputs.models }} |
83 | 85 | FILTER_BEDROCK: ${{ steps.filter.outputs.bedrock-specific }} |
|
99 | 101 | } |
100 | 102 |
|
101 | 103 | if [ "$IS_MERGE_GROUP" = "true" ] || [ "$FILTER_RUN_ALL" = "true" ]; then |
102 | | - # Run ALL tests for merge queue or when foundational code changes |
| 104 | + # Run ALL tests for merge queue, scheduled runs, or when foundational code changes |
103 | 105 | # (types, handlers, telemetry, CI config, test infra, pyproject.toml) |
104 | 106 | add_group "all" "tests_integ" |
105 | 107 | else |
|
0 commit comments