-
Notifications
You must be signed in to change notification settings - Fork 44
67 lines (64 loc) · 1.87 KB
/
build-test-gpu.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and test GPU
run-name: ${{ inputs.run_name }}
on:
workflow_dispatch:
inputs:
runner_label:
description: Runner label or GPU
type: string
required: true
pytorch_ref:
description: PyTorch ref, keep empty for default
type: string
default: ""
pytorch_mode:
description: PyTorch mode, source or wheels
type: choice
options:
- source
- wheels
default: source
upload_test_reports:
description: Upload test reports
type: boolean
default: false
ignore_errors:
description: Ignore test errors
type: boolean
default: false
skip_list:
description: Skip list
type: string
required: true
run_name:
description: Custom run name
type: string
default: ""
enable_unskip:
description: Ignore pytest.skip
type: boolean
default: false
use_pyenv_python:
description: Use Python built with pyenv
type: boolean
default: false
permissions: read-all
jobs:
integration-tests:
name: Integration tests matrix
strategy:
matrix:
python: ["3.9"]
uses: ./.github/workflows/build-test-reusable.yml
with:
device: ${{ inputs.runner_label }}
runner_label: ${{ inputs.runner_label }}
pytorch_ref: ${{ inputs.pytorch_ref }}
pytorch_mode: ${{ inputs.pytorch_mode || 'source' }}
python_version: ${{ matrix.python }}
upload_test_reports: ${{ inputs.upload_test_reports }}
ignore_errors: ${{ inputs.ignore_errors }}
skip_list: ${{ inputs.skip_list }}
run_name: ${{ inputs.run_name || format('Build and test {0}', inputs.runner_label) }}
enable_unskip: ${{ inputs.enable_unskip }}
use_pyenv_python: ${{ inputs.use_pyenv_python || false }}