-
Notifications
You must be signed in to change notification settings - Fork 1k
47 lines (43 loc) · 1.67 KB
/
test-backend-coreml.yml
File metadata and controls
47 lines (43 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test CoreML Backend
on:
schedule:
- cron: 0 2 * * *
push:
branches:
- main
- release/*
tags:
- ciflow/nightly/*
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}--${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
jobs:
# Emits PR diff file list; non-PR events emit '*' so the per-job
# `if:` short-circuits via `event_name != 'pull_request'`. This
# workflow always shows on HUD; only the heavy test-coreml job is
# path-gated.
changed-files:
name: Get changed files
uses: ./.github/workflows/_get-changed-files.yml
test-coreml:
needs: changed-files
if: |
github.event_name != 'pull_request' ||
contains(needs.changed-files.outputs.changed-files, 'backends/apple/coreml') ||
contains(needs.changed-files.outputs.changed-files, 'backends/test/suite') ||
contains(needs.changed-files.outputs.changed-files, '.ci/scripts/test_backend.sh') ||
contains(needs.changed-files.outputs.changed-files, '.ci/scripts/setup-macos.sh') ||
contains(needs.changed-files.outputs.changed-files, '.github/workflows/test-backend-coreml.yml') ||
contains(needs.changed-files.outputs.changed-files, '.github/workflows/_test_backend.yml')
uses: ./.github/workflows/_test_backend.yml
with:
backend: coreml
flows: >-
${{ github.event_name == 'pull_request'
&& '["coreml"]'
|| '["coreml", "coreml_static_int8"]' }}
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 120
run-macos: true