Skip to content

Commit 2203a93

Browse files
authored
add docs-building CI (#46)
Replaces #44. Trying a new PR that enables docs builds on PRs and branch builds. Authors: - James Lamb (https://github.com/jameslamb) - Brad Rees (https://github.com/BradReesWork) - Jake Awe (https://github.com/AyodeAwe) Approvers: - Don Acosta (https://github.com/acostadon) - Mike Sarahan (https://github.com/msarahan) URL: #46
1 parent 21500c7 commit 2203a93

7 files changed

Lines changed: 23 additions & 35 deletions

File tree

ci/build_docs.sh

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -euo pipefail
66
rapids-logger "Create test conda environment"
77
. /opt/conda/etc/profile.d/conda.sh
88

9+
RAPIDS_VERSION="$(rapids-version)"
10+
RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)"
11+
912
rapids-dependency-file-generator \
1013
--output conda \
1114
--file-key docs \
@@ -14,56 +17,39 @@ rapids-dependency-file-generator \
1417
rapids-mamba-retry env create --yes -f env.yaml -n docs
1518
conda activate docs
1619

17-
rapids-print-env
20+
export RAPIDS_DOCS_DIR="$(mktemp -d)"
1821

19-
rapids-logger "Downloading artifacts from previous jobs"
20-
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
21-
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
22+
rapids-print-env
2223

2324
if [[ "${RAPIDS_CUDA_VERSION}" == "11.8.0" ]]; then
24-
CONDA_CUDA_VERSION="11.8"
2525
DGL_CHANNEL="dglteam/label/cu118"
2626
else
27-
CONDA_CUDA_VERSION="12.1"
2827
DGL_CHANNEL="dglteam/label/cu121"
2928
fi
3029

3130
rapids-mamba-retry install \
32-
--channel "${CPP_CHANNEL}" \
33-
--channel "${PYTHON_CHANNEL}" \
3431
--channel conda-forge \
3532
--channel pyg \
3633
--channel nvidia \
3734
--channel "${DGL_CHANNEL}" \
38-
libcugraph \
39-
pylibcugraph \
40-
cugraph \
41-
cugraph-pyg \
42-
cugraph-dgl \
43-
libcugraph_etl \
44-
pylibcugraphops \
45-
pylibwholegraph \
35+
"libcugraph==${RAPIDS_VERSION}.*" \
36+
"pylibcugraph=${RAPIDS_VERSION}.*" \
37+
"cugraph=${RAPIDS_VERSION}.*" \
38+
"cugraph-pyg=${RAPIDS_VERSION}.*" \
39+
"cugraph-dgl=${RAPIDS_VERSION}.*" \
40+
"libcugraph_etl=${RAPIDS_VERSION}.*" \
41+
"pylibcugraphops=${RAPIDS_VERSION}.*" \
42+
"pylibwholegraph=${RAPIDS_VERSION}.*" \
4643
pytorch \
47-
"cuda-version=${CONDA_CUDA_VERSION}"
48-
49-
export RAPIDS_VERSION="$(rapids-version)"
50-
export RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)"
51-
export RAPIDS_VERSION_NUMBER="$RAPIDS_VERSION_MAJOR_MINOR"
52-
export RAPIDS_DOCS_DIR="$(mktemp -d)"
44+
"cuda-version=${RAPIDS_CUDA_VERSION%.*}"
5345

5446
PROJ_LIST=("libcugraph libcugraphops libwholegraph")
5547

5648
for PROJECT in ${PROJ_LIST}; do
5749
rapids-logger "Download ${PROJECT} xml_tar"
5850
TMP_DIR=$(mktemp -d)
5951
export XML_DIR_${PROJECT^^}="$TMP_DIR"
60-
61-
if [[ $PROJECT == "libcugraph" ]]; then
62-
echo "TMP (FIXME) downloading xml for ${PROJECT} into ${XML_DIR}. Environment variable XML_DIR_${PROJECT^^} is set to ${XML_DIR}"
63-
curl -O "https://raw.githubusercontent.com/BradReesWork/data/main/xml.tar.gz"
64-
else
65-
curl "https://d1664dvumjb44w.cloudfront.net/${PROJECT}/xml_tar/${RAPIDS_VERSION_NUMBER}/xml.tar.gz" | tar -xzf - -C "${TMP_DIR}"
66-
fi
52+
curl "https://d1664dvumjb44w.cloudfront.net/${PROJECT}/xml_tar/${RAPIDS_VERSION_MAJOR_MINOR}/xml.tar.gz" | tar -xzf - -C "${TMP_DIR}"
6753
done
6854

6955

@@ -77,4 +63,4 @@ mkdir -p "${RAPIDS_DOCS_DIR}/cugraph-docs/html"
7763
mv _html/* "${RAPIDS_DOCS_DIR}/cugraph-docs/html"
7864
popd
7965

80-
rapids-upload-docs
66+
RAPIDS_VERSION_NUMBER="${RAPIDS_VERSION_MAJOR_MINOR}" rapids-upload-docs

ci/check_style.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rapids-logger "Create checks conda environment"
88

99
rapids-dependency-file-generator \
1010
--output conda \
11-
--file_key checks \
11+
--file-key checks \
1212
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
1313

1414
rapids-mamba-retry env create --yes -f env.yaml -n checks

conda/environments/all_cuda-118_arch-x86_64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies:
1616
- doxygen
1717
- graphviz
1818
- ipython
19-
- make
2019
- nbsphinx
2120
- numpydoc
2221
- pre-commit

conda/environments/all_cuda-122_arch-x86_64.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies:
1616
- doxygen
1717
- graphviz
1818
- ipython
19-
- make
2019
- nbsphinx
2120
- numpydoc
2221
- pre-commit

dependencies.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ dependencies:
7171
cuda: "12.2"
7272
packages:
7373
- cuda-version=12.2
74+
- matrix:
75+
cuda: "12.5"
76+
packages:
77+
- cuda-version=12.5
7478

7579
docs:
7680
common:

docs/cugraph-docs/source/installation/getting_cugraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The RAPIDS Docker containers contain all RAPIDS packages, including all from cuG
2626

2727

2828
## Conda
29-
It is easy to install cuGraph using conda. You can get a minimal conda installation with [Miniconda](https://conda.io/miniconda.html) or get the full installation with [Anaconda](https://www.anaconda.com/download).
29+
It is easy to install cuGraph using conda. We recommend using [Miniforge](https://github.com/conda-forge/miniforge).
3030

3131
cuGraph Conda packages
3232
* cugraph - this will also import:

docs/cugraph-docs/source/wholegraph/installation/getting_wholegraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The RAPIDS Docker containers (as of Release 23.10) contain all RAPIDS packages,
2121

2222

2323
## Conda
24-
It is easy to install WholeGraph using conda. You can get a minimal conda installation with [Miniconda](https://conda.io/miniconda.html) or get the full installation with [Anaconda](https://www.anaconda.com/download).
24+
It is easy to install WholeGraph using conda. We recommend using [Miniforge](https://github.com/conda-forge/miniforge).
2525

2626
WholeGraph conda packages
2727
* libwholegraph

0 commit comments

Comments
 (0)