|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 | - release/* |
| 8 | + tags: |
| 9 | + - ciflow/mlx/* |
8 | 10 | pull_request: |
9 | 11 | paths: |
10 | 12 | - .github/workflows/mlx.yml |
|
16 | 18 | - examples/models/qwen3_5_moe/** |
17 | 19 | workflow_dispatch: |
18 | 20 |
|
| 21 | +concurrency: |
| 22 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} |
| 23 | + cancel-in-progress: true |
| 24 | + |
19 | 25 | permissions: {} |
20 | 26 |
|
21 | 27 | jobs: |
@@ -218,6 +224,10 @@ jobs: |
218 | 224 | echo "::endgroup::" |
219 | 225 |
|
220 | 226 | test-mlx-voxtral: |
| 227 | + # Requires HuggingFace secrets — skip on fork PRs. |
| 228 | + # Maintainers can opt-in by applying the ciflow/mlx label, which |
| 229 | + # pushes a ciflow/mlx/<PR> tag that re-runs this workflow with secrets. |
| 230 | + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' |
221 | 231 | uses: pytorch/test-infra/.github/workflows/macos_job.yml@main |
222 | 232 | secrets: inherit |
223 | 233 | with: |
@@ -275,6 +285,9 @@ jobs: |
275 | 285 | echo "::endgroup::" |
276 | 286 |
|
277 | 287 | test-mlx-voxtral-realtime: |
| 288 | + # Requires HuggingFace secrets — skip on fork PRs. |
| 289 | + # Maintainers can opt-in by applying the ciflow/mlx label. |
| 290 | + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' |
278 | 291 | uses: pytorch/test-infra/.github/workflows/macos_job.yml@main |
279 | 292 | secrets: inherit |
280 | 293 | with: |
@@ -347,6 +360,9 @@ jobs: |
347 | 360 | echo "::endgroup::" |
348 | 361 |
|
349 | 362 | test-mlx-whisper: |
| 363 | + # Requires HuggingFace secrets — skip on fork PRs. |
| 364 | + # Maintainers can opt-in by applying the ciflow/mlx label. |
| 365 | + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' |
350 | 366 | uses: pytorch/test-infra/.github/workflows/macos_job.yml@main |
351 | 367 | secrets: inherit |
352 | 368 | with: |
@@ -458,6 +474,9 @@ jobs: |
458 | 474 | echo "::endgroup::" |
459 | 475 |
|
460 | 476 | test-mlx-llm: |
| 477 | + # Requires HuggingFace secrets — skip on fork PRs. |
| 478 | + # Maintainers can opt-in by applying the ciflow/mlx label. |
| 479 | + if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' |
461 | 480 | strategy: |
462 | 481 | fail-fast: false |
463 | 482 | matrix: |
|
0 commit comments