-
Notifications
You must be signed in to change notification settings - Fork 72
91 lines (79 loc) · 3.24 KB
/
update-gpuci.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Check for gpuCI updates
on:
schedule:
- cron: "0 0 * * *" # Daily “At 00:00” UTC
workflow_dispatch:
jobs:
update-gpuci:
runs-on: ubuntu-latest
if: github.repository == 'dask-contrib/dask-sql'
steps:
- uses: actions/checkout@v3
- name: Parse current axis YAML
id: rapids_current
uses: the-coding-turtle/[email protected]
with:
file: continuous_integration/gpuci/axis.yaml
- name: Get latest cuDF nightly version
id: cudf_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "cudf"
version_system: "CalVer"
- name: Get latest cuML nightly version
id: cuml_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "cuml"
version_system: "CalVer"
- name: Get latest UCX-Py nightly version
id: ucx_py_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "ucx-py"
version_system: "CalVer"
- name: Get old RAPIDS / UCX-Py versions
env:
FULL_CUDF_VER: ${{ steps.cudf_latest.outputs.version }}
FULL_CUML_VER: ${{ steps.cuml_latest.outputs.version }}
FULL_UCX_PY_VER: ${{ steps.ucx_py_latest.outputs.version }}
run: |
echo RAPIDS_VER=${{ steps.rapids_current.outputs.RAPIDS_VER_0 }} >> $GITHUB_ENV
echo UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/${{ steps.rapids_current.outputs.RAPIDS_VER_0 }}) >> $GITHUB_ENV
echo NEW_CUDF_VER=${FULL_CUDF_VER::-4} >> $GITHUB_ENV
echo NEW_CUML_VER=${FULL_CUML_VER::-4} >> $GITHUB_ENV
echo NEW_UCX_PY_VER=${FULL_UCX_PY_VER::-4} >> $GITHUB_ENV
- name: Update RAPIDS version
uses: jacobtomlinson/gha-find-replace@v3
with:
include: 'continuous_integration/gpuci/**'
find: "${{ env.RAPIDS_VER }}"
replace: "${{ env.NEW_CUDF_VER }}"
regex: true
- name: Update UCX-Py version
uses: jacobtomlinson/gha-find-replace@v3
with:
include: 'continuous_integration/gpuci/**'
find: "${{ env.UCX_PY_VER }}"
replace: "${{ env.NEW_UCX_PY_VER }}"
regex: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
# make sure ucx-py nightlies are available and that cuDF/cuML nightly versions match up
if: |
env.UCX_PY_VER != env.NEW_UCX_PY_VER &&
env.RAPIDS_VER != env.NEW_CUDF_VER &&
env.NEW_CUDF_VER == env.NEW_CUML_VER
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_CUDF_VER }}`"
title: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_CUDF_VER }}`"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: "upgrade-gpuci-rapids"
body: |
New cuDF and ucx-py nightly versions have been detected.
Updated gpuCI to use RAPIDS ${{ env.NEW_CUDF_VER }} and UCX-Py ${{ env.NEW_UCX_PY_VER }}.