Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Add docs build job #536

Merged
merged 26 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
127e899
initial draft
AyodeAwe Jan 19, 2023
c2755a4
initial draft
AyodeAwe Jan 19, 2023
cce7282
Merge branch 'add_docs_build' of github.com:AyodeAwe/cusignal into ad…
AyodeAwe Jan 19, 2023
dda35e6
pip
AyodeAwe Jan 19, 2023
cd85571
downgr sphinx
AyodeAwe Jan 19, 2023
6b9d9af
fix typo
AyodeAwe Jan 24, 2023
582fa89
review
AyodeAwe Jan 27, 2023
c16d811
fix typo
AyodeAwe Jan 28, 2023
d6c270b
set lang to en
AyodeAwe Jan 28, 2023
f6da163
autodoc warning fixes
AyodeAwe Jan 31, 2023
6dcde7e
Revert "autodoc warning fixes"
AyodeAwe Feb 1, 2023
6bfe0ce
Revert "set lang to en"
AyodeAwe Feb 1, 2023
65c316c
rm -W flag
AyodeAwe Feb 1, 2023
1b2e8ab
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Feb 1, 2023
a8d6104
minor fixes
AyodeAwe Feb 1, 2023
d47f593
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Feb 1, 2023
140fe52
docs_build -> docs
AyodeAwe Feb 10, 2023
ac9037a
Merge branch 'add_docs_build' of github.com:AyodeAwe/cusignal into ad…
AyodeAwe Feb 10, 2023
58d520c
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 10, 2023
1913099
update shared workflows branch
ajschmidt8 Feb 13, 2023
b6512fb
Merge branch 'branch-23.04' into add_docs_build
ajschmidt8 Feb 13, 2023
ecc447e
fix critical & underline warnings
AyodeAwe Feb 14, 2023
05e2800
rm trailing whitespace
ajschmidt8 Feb 14, 2023
1da025d
add docs directories to `.gitignore`
ajschmidt8 Feb 14, 2023
d54afc2
rm unnecessary imports & header
ajschmidt8 Feb 14, 2023
7ea1672
put back copyright header
ajschmidt8 Feb 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@ jobs:
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
docs-build:
if: ${{ startsWith(github.ref, 'refs/heads/branch-') }}
needs: python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@cuda-118
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
with:
build_type: branch
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- conda-python-build
- conda-python-tests
- conda-notebook-tests
- docs-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@cuda-118
checks:
Expand Down Expand Up @@ -43,3 +44,13 @@ jobs:
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/test_notebooks.sh"
docs-build:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@cuda-118
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
with:
build_type: pull-request
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
37 changes: 37 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml

rapids-mamba-retry env create --force -f env.yaml -n docs
conda activate docs

rapids-print-env

rapids-logger "Downloading artifacts from previous jobs"
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
VERSION_NUMBER=$(rapids-get-rapids-version-from-git)

rapids-mamba-retry install \
--channel "${PYTHON_CHANNEL}" \
cusignal

rapids-logger "Build Sphinx docs"
pushd docs
sphinx-build -b dirhtml source _html
sphinx-build -b text source _text
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
popd


if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
aws s3 sync --delete docs/_html "s3://rapidsai-docs/cusignal/${VERSION_NUMBER}/html"
aws s3 sync --delete docs/_text "s3://rapidsai-docs/cusignal/${VERSION_NUMBER}/txt"
fi
4 changes: 4 additions & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ dependencies:
- notebook
- numba >=0.49.0
- numpy >=1.19,<1.24
- numpydoc
- pre-commit
- pydata-sphinx-theme
- pytest
- pytest-benchmark
- pytest-cov
- pytest-xdist
- python>=3.8,<3.11
- pytorch <=1.12.1
- scipy >=1.6.0
- sphinx-copybutton
- sphinx<6
name: all_cuda-118_arch-x86_64
16 changes: 16 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ files:
includes:
- checks
- cudatoolkit
- docs_build
- py_version
- run
- test_notebooks
Expand All @@ -29,6 +30,12 @@ files:
includes:
- checks
- py_version
docs:
output: none
includes:
- cudatoolkit
- docs_build
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
- py_version
channels:
- rapidsai
- rapidsai-nightly
Expand Down Expand Up @@ -60,6 +67,15 @@ dependencies:
- output_types: [conda, requirements]
packages:
- pre-commit
docs_build:
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
common:
- output_types: [conda, requirements]
packages:
- ipython
- numpydoc
- pydata-sphinx-theme
- sphinx<6
- sphinx-copybutton
py_version:
specific:
- output_types: conda
Expand Down