forked from rapidsai/legate-boost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_python_common.sh
More file actions
47 lines (37 loc) · 1.1 KB
/
test_python_common.sh
File metadata and controls
47 lines (37 loc) · 1.1 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
#!/bin/bash
# [description]
#
# Common environment-setup stuff used by different CI jobs that
# test conda packages.
#
# This is intended to be source'd by other test scripts.
set -e -E -u -o pipefail
# source conda settings so 'conda activate' will work
# shellcheck disable=SC1091
. /opt/conda/etc/profile.d/conda.sh
rapids-generate-version > ./VERSION
LEGATEBOOST_VERSION=$(rapids-version)
rapids-print-env
rapids-dependency-file-generator \
--output conda \
--file-key test_python \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" \
| tee /tmp/env.yaml
rapids-mamba-retry env create \
--yes \
--file /tmp/env.yaml \
--name test-env
# Temporarily allow unbound variables for conda activation.
set +u
conda activate test-env
set -u
rapids-print-env
# Install legate-boost conda package built in the previous CI job
rapids-mamba-retry install \
--name test-env \
--channel "${RAPIDS_LOCAL_CONDA_CHANNEL}" \
--channel legate \
--channel legate/label/rc \
--channel legate/label/experimental \
--channel conda-forge \
"legate-boost=${LEGATEBOOST_VERSION}"