Repository navigation
75 lines (70 loc) · 1.93 KB
/
Copy pathtest-python-editable.yml
File metadata and controls
75 lines (70 loc) · 1.93 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Test Python Editable Install
on:
workflow_call:
inputs:
python:
type: string
required: false
cuda:
type: string
required: false
host:
type: string
required: false
devcontainer_version:
type: string
required: false
workflow_dispatch:
inputs:
python:
description: "Python major.minor version override"
type: string
required: false
cuda:
description: "CUDA Toolkit major.minor version override"
type: string
required: false
host:
description: "Host compiler tag override"
type: string
required: false
devcontainer_version:
description: "RAPIDS devcontainer version override"
type: string
required: false
defaults:
run:
shell: bash --noprofile --norc -euo pipefail {0}
jobs:
test-editable-install:
name: Test editable install
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Test editable install
env:
PYTHON_INPUT: ${{ inputs.python }}
CUDA_INPUT: ${{ inputs.cuda }}
HOST_INPUT: ${{ inputs.host }}
DEVCONTAINER_INPUT: ${{ inputs.devcontainer_version }}
run: |
args=()
if [[ -n "${PYTHON_INPUT}" ]]; then
args+=("-py-version" "${PYTHON_INPUT}")
fi
if [[ -n "${CUDA_INPUT}" ]]; then
args+=("-cuda-version" "${CUDA_INPUT}")
fi
if [[ -n "${HOST_INPUT}" ]]; then
args+=("-host" "${HOST_INPUT}")
fi
if [[ -n "${DEVCONTAINER_INPUT}" ]]; then
args+=("-devcontainer-version" "${DEVCONTAINER_INPUT}")
fi
bash ci/test_cuda_bench_editable.sh "${args[@]}"