From 10f35b4ae45b25f16553689ed2e3cfed8c8af6c5 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 09:46:04 -0700 Subject: [PATCH 01/20] add docs CI [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 69 +++++++++++++++++++++ docs/doc_push.sh | 101 +++++++++++++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 .github/workflows/doc-build.yaml create mode 100644 docs/doc_push.sh diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml new file mode 100644 index 00000000..2b62626a --- /dev/null +++ b/.github/workflows/doc-build.yaml @@ -0,0 +1,69 @@ +name: Docs Build + +on: + push: + branches: + - main + pull_request: + +jobs: + docbuild: + runs-on: ubuntu-18.04 + steps: + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: x64 + - name: Checkout MultiPy + uses: actions/checkout@v2 + - name: Install Dependencies + run: | + set -eux + sudo apt-get install -y pandoc + pip install -r docs/requirements.txt + - name: Doc Test + run: | + cd docs + make doctest + - name: Linkcheck + run: | + cd docs + make linkcheck + - name: Doc Build + run: | + cd docs + make html + + docpush: + runs-on: ubuntu-18.04 + needs: docbuild + if: ${{ github.ref == 'refs/heads/main' }} + steps: + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: x64 + - name: Checkout MultiPy + uses: actions/checkout@v2 + - name: Set Identity + run: | + set -ex + git config --global user.email "runner@github.com" + git config --global user.name "TorchX CI Runner" + - name: Install Dependencies + run: | + set -eux + sudo apt-get install -y pandoc + pip install -r docs/requirements.txt + - name: Build + run: | + set -ex + docs/doc_push.sh --dry-run + - name: Push + run: | + set -ex + cd /tmp/multipy_docs_tmp/multipy_gh_pages + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} + git push diff --git a/docs/doc_push.sh b/docs/doc_push.sh new file mode 100644 index 00000000..888a8f9d --- /dev/null +++ b/docs/doc_push.sh @@ -0,0 +1,101 @@ +#!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + +# +# Builds docs from the checkedout HEAD +# and pushes the artifacts to gh-pages branch in github.com/pytorch/multipy +# +# 1. sphinx generated docs are copied to / +# 2. if a release tag is found on HEAD then redirects are copied to /latest +# 3. if no release tag is found on HEAD then redirects are copied to /main +# +# gh-pages branch should look as follows: +# +# |- 0.1.0rc2 +# |- 0.1.0rc3 +# |- +# |- main (redirects to the most recent ver in trunk, including release) +# |- latest (redirects to the most recent release) +# If the most recent release is 0.1.0 and main is at 0.1.1rc1 then, +# https://pytorch.org/multipy/main -> https://pytorch.org/multipy/0.1.1rc1 +# https://pytorch.org/multipy/latest -> https://pytorch.org/multipy/0.1.0 +# +# Redirects are done via Jekyll redirect-from plugin. See: +# sources/scripts/create_redirect_md.py +# Makefile (redirect target) +# (on gh-pages branch) _layouts/docs_redirect.html + +set -ex + +dry_run=0 +for arg in "$@"; do + shift + case "$arg" in + "--dry-run") dry_run=1 ;; + "--help") echo "Usage $0 [--dry-run]"; exit 0 ;; + esac +done + +repo_origin="$(git remote get-url origin)" +repo_root=$(git rev-parse --show-toplevel) +branch=$(git rev-parse --abbrev-ref HEAD) +commit_id=$(git rev-parse --short HEAD) + +if ! release_tag=$(git describe --tags --exact-match HEAD 2>/dev/null); then + echo "No release tag found, building docs for main..." + redirects=(main) + release_tag="main" +else + echo "Release tag $release_tag found, building docs for release..." + redirects=(latest main) +fi + +echo "Installing multipy from $repo_root..." +cd "$repo_root" || exit +pip install -r dev-requirements.txt +pip install -e . --install-option="--cmakeoff" + +multipy_ver=$(python -c "import multipy; print(multipy.__version__)") + +echo "Building multipy-$multipy_ver docs..." +docs_dir=$repo_root/docs +build_dir=$docs_dir/build +cd "$docs_dir" || exit +pip install -r requirements.txt +make clean html +echo "Doc build complete" + +tmp_dir=/tmp/multipy_docs_tmp +rm -rf "${tmp_dir:?}" + +echo "Checking out gh-pages branch..." +gh_pages_dir="$tmp_dir/multipy_gh_pages" +git clone -b gh-pages --single-branch "$repo_origin" $gh_pages_dir + +echo "Copying doc pages for $multipy_ver into $gh_pages_dir..." +rm -rf "${gh_pages_dir:?}/${multipy_ver:?}" +cp -R "$build_dir/$multipy_ver/html" "$gh_pages_dir/$multipy_ver" + +cd $gh_pages_dir || exit + +for redirect in "${redirects[@]}"; do + echo "Creating redirect symlinks for: $redirect -> $multipy_ver..." + rm -rf "${gh_pages_dir:?}/${redirect:?}" + ln -s "$multipy_ver" "$redirect" +done + +"$docs_dir"/versions_html.py + +git add . +git commit --quiet -m "[doc_push][$release_tag] built from $commit_id ($branch). Redirects: ${redirects[*]} -> $multipy_ver." + +if [ $dry_run -eq 1 ]; then + echo "*** --dry-run mode, skipping push to gh-pages branch. To publish run: cd ${gh_pages_dir} && git push" + exit +fi + +git push From 76837e2530160a88ac4b78fc56773f8757926046 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 10:38:26 -0700 Subject: [PATCH 02/20] Update on "add docs CI" [ghstack-poisoned] --- docs/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/requirements.txt b/docs/requirements.txt index b6b73d20..36e428ed 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,4 +5,6 @@ sphinxcontrib.katex matplotlib papermill jinja2<=3.0.3 +breathe exhale +ipython_genutils From 1e77c24e2c68fbf06040486a6e708c289598eaee Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 10:44:52 -0700 Subject: [PATCH 03/20] Update on "add docs CI" [ghstack-poisoned] --- docs/Makefile | 5 +++++ docs/requirements.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/Makefile b/docs/Makefile index dd9632c8..f6720af7 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -14,6 +14,11 @@ help: .PHONY: help Makefile +clean: + @echo "Deleting build directory" + rm -rf "$(BUILDDIR)" + rm -rf _doxygen/ api/ + # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile diff --git a/docs/requirements.txt b/docs/requirements.txt index 36e428ed..33f77426 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -8,3 +8,4 @@ jinja2<=3.0.3 breathe exhale ipython_genutils +ipykernel From 6b7e0724767e5de2cbd9676acc38ed726cbf9503 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 10:52:07 -0700 Subject: [PATCH 04/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 2b62626a..c882d9b0 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -20,7 +20,7 @@ jobs: - name: Install Dependencies run: | set -eux - sudo apt-get install -y pandoc + sudo apt-get install -y pandoc doxygen pip install -r docs/requirements.txt - name: Doc Test run: | @@ -51,11 +51,11 @@ jobs: run: | set -ex git config --global user.email "runner@github.com" - git config --global user.name "TorchX CI Runner" + git config --global user.name "MultiPy CI Runner" - name: Install Dependencies run: | set -eux - sudo apt-get install -y pandoc + sudo apt-get install -y pandoc doxygen pip install -r docs/requirements.txt - name: Build run: | From 3aeb5bb6501fc2ddef5e2948d26100fdd03f45a0 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 10:55:10 -0700 Subject: [PATCH 05/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index c882d9b0..3c339b17 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -38,7 +38,7 @@ jobs: docpush: runs-on: ubuntu-18.04 needs: docbuild - if: ${{ github.ref == 'refs/heads/main' }} + # if: ${{ github.ref == 'refs/heads/main' }} steps: - name: Setup Python uses: actions/setup-python@v2 From 4e62883a050faf999545d3338f15ef26a3fc7a05 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 11:01:04 -0700 Subject: [PATCH 06/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 3c339b17..ce85e1cb 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -60,7 +60,7 @@ jobs: - name: Build run: | set -ex - docs/doc_push.sh --dry-run + sudo docs/doc_push.sh --dry-run - name: Push run: | set -ex From 6f2a70dd2329f2a61fdfad6dfce3e358f4bbf1eb Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 11:09:42 -0700 Subject: [PATCH 07/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index ce85e1cb..7b508c39 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -60,7 +60,7 @@ jobs: - name: Build run: | set -ex - sudo docs/doc_push.sh --dry-run + sudo ./docs/doc_push.sh --dry-run - name: Push run: | set -ex From 0d6e162638aadf598d37c760aea0c24c3da95781 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 12:21:14 -0700 Subject: [PATCH 08/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 7b508c39..f493678f 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -22,6 +22,10 @@ jobs: set -eux sudo apt-get install -y pandoc doxygen pip install -r docs/requirements.txt + - name: Setup SSH (Click me for login details) + uses: ./.github/actions/setup-ssh + with: + github-secret: ${{ secrets.GITHUB_TOKEN }} - name: Doc Test run: | cd docs @@ -52,6 +56,10 @@ jobs: set -ex git config --global user.email "runner@github.com" git config --global user.name "MultiPy CI Runner" + - name: Setup SSH (Click me for login details) + uses: ./.github/actions/setup-ssh + with: + github-secret: ${{ secrets.GITHUB_TOKEN }} - name: Install Dependencies run: | set -eux @@ -60,7 +68,7 @@ jobs: - name: Build run: | set -ex - sudo ./docs/doc_push.sh --dry-run + sudo bash docs/doc_push.sh --dry-run - name: Push run: | set -ex From dc2e8f921ecf7fecb2a051acb74e79d6aa797824 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 13:13:25 -0700 Subject: [PATCH 09/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index f493678f..7443ee3e 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -64,6 +64,7 @@ jobs: run: | set -eux sudo apt-get install -y pandoc doxygen + python -m pip install --upgrade pip pip install -r docs/requirements.txt - name: Build run: | From 0393ee0f22cd8145a8142c47e6b9731383c7ac50 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 13:25:08 -0700 Subject: [PATCH 10/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index 888a8f9d..2200d24b 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -56,7 +56,7 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit -pip install -r dev-requirements.txt +pip install -r requirements.txt pip install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") From 694cd02496a9f06d351c7b855bc750d46e1091b1 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 13:54:27 -0700 Subject: [PATCH 11/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index 2200d24b..cd34127b 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -56,6 +56,7 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit +pip install --upgrade pip pip install -r requirements.txt pip install -e . --install-option="--cmakeoff" From 2de130bef1cae43f1fb9b8a7a3754dbe12be037f Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:01:42 -0700 Subject: [PATCH 12/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index cd34127b..ac2f2387 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -56,9 +56,9 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit -pip install --upgrade pip -pip install -r requirements.txt -pip install -e . --install-option="--cmakeoff" +python3 -m pip install --upgrade pip +python3 -m pip install -r requirements.txt +python3 -m pip install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") @@ -66,7 +66,7 @@ echo "Building multipy-$multipy_ver docs..." docs_dir=$repo_root/docs build_dir=$docs_dir/build cd "$docs_dir" || exit -pip install -r requirements.txt +python3 -m pip install -r requirements.txt make clean html echo "Doc build complete" From 43cce1c99b2f2ef4b3b1d70d328fdbff4f0541cd Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:13:58 -0700 Subject: [PATCH 13/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index ac2f2387..6e4c482b 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -57,7 +57,6 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit python3 -m pip install --upgrade pip -python3 -m pip install -r requirements.txt python3 -m pip install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") From c43ee05b6a3a9be733e07595fe15862dabc6e8fb Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:20:15 -0700 Subject: [PATCH 14/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index 6e4c482b..76828bbf 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -57,6 +57,7 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit python3 -m pip install --upgrade pip +python3 -m pip install setuptools python3 -m pip install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") From 7c9a6a3312534d70c1b7e6677339d2d8de1bff14 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:28:35 -0700 Subject: [PATCH 15/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 7443ee3e..b61e5fee 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -8,7 +8,7 @@ on: jobs: docbuild: - runs-on: ubuntu-18.04 + runs-on: linux.2xlarge steps: - name: Setup Python uses: actions/setup-python@v2 @@ -40,7 +40,7 @@ jobs: make html docpush: - runs-on: ubuntu-18.04 + runs-on: linux.2xlarge needs: docbuild # if: ${{ github.ref == 'refs/heads/main' }} steps: From 53620e719885ef8a671d95266512b07de0c1fa35 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:33:22 -0700 Subject: [PATCH 16/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index b61e5fee..689ce13e 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -14,7 +14,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 - architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Install Dependencies @@ -48,7 +47,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 - architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Set Identity From 349f2958adae163f6b43dce6b71a989fe88a0dbe Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:43:26 -0700 Subject: [PATCH 17/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 6 ++++-- docs/doc_push.sh | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 689ce13e..7443ee3e 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -8,12 +8,13 @@ on: jobs: docbuild: - runs-on: linux.2xlarge + runs-on: ubuntu-18.04 steps: - name: Setup Python uses: actions/setup-python@v2 with: python-version: 3.8 + architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Install Dependencies @@ -39,7 +40,7 @@ jobs: make html docpush: - runs-on: linux.2xlarge + runs-on: ubuntu-18.04 needs: docbuild # if: ${{ github.ref == 'refs/heads/main' }} steps: @@ -47,6 +48,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 + architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Set Identity diff --git a/docs/doc_push.sh b/docs/doc_push.sh index 76828bbf..d9430da1 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -56,9 +56,9 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit -python3 -m pip install --upgrade pip -python3 -m pip install setuptools -python3 -m pip install -e . --install-option="--cmakeoff" +python -m pip3 install --upgrade pip +python -m pip3 install setuptools +python -m pip3 install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") @@ -66,7 +66,7 @@ echo "Building multipy-$multipy_ver docs..." docs_dir=$repo_root/docs build_dir=$docs_dir/build cd "$docs_dir" || exit -python3 -m pip install -r requirements.txt +python -m pip3 install -r requirements.txt make clean html echo "Doc build complete" From fc9d57c53ea242fdd5c3e61fb28609e700a8e277 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 14:51:56 -0700 Subject: [PATCH 18/20] Update on "add docs CI" [ghstack-poisoned] --- docs/doc_push.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/doc_push.sh b/docs/doc_push.sh index d9430da1..53308f2e 100644 --- a/docs/doc_push.sh +++ b/docs/doc_push.sh @@ -56,9 +56,10 @@ fi echo "Installing multipy from $repo_root..." cd "$repo_root" || exit -python -m pip3 install --upgrade pip -python -m pip3 install setuptools -python -m pip3 install -e . --install-option="--cmakeoff" +python --version +python -m pip install --upgrade pip +python -m pip install setuptools +python -m pip install -e . --install-option="--cmakeoff" multipy_ver=$(python -c "import multipy; print(multipy.__version__)") @@ -66,7 +67,7 @@ echo "Building multipy-$multipy_ver docs..." docs_dir=$repo_root/docs build_dir=$docs_dir/build cd "$docs_dir" || exit -python -m pip3 install -r requirements.txt +python -m pip install -r requirements.txt make clean html echo "Doc build complete" From c20d515af88a693e60cdeb55be78dcbf72b90b4f Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 15:05:36 -0700 Subject: [PATCH 19/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 7443ee3e..919eafab 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -69,7 +69,7 @@ jobs: - name: Build run: | set -ex - sudo bash docs/doc_push.sh --dry-run + bash docs/doc_push.sh --dry-run - name: Push run: | set -ex From b2c75ae0c6f5f6c430f9fb116149779cb61897f8 Mon Sep 17 00:00:00 2001 From: Sahan Paliskara Date: Wed, 26 Oct 2022 15:15:19 -0700 Subject: [PATCH 20/20] Update on "add docs CI" [ghstack-poisoned] --- .github/workflows/doc-build.yaml | 34 +++++++++++++++++++------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/doc-build.yaml b/.github/workflows/doc-build.yaml index 919eafab..64e3dad7 100644 --- a/.github/workflows/doc-build.yaml +++ b/.github/workflows/doc-build.yaml @@ -8,19 +8,22 @@ on: jobs: docbuild: - runs-on: ubuntu-18.04 + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: linux.2xlarge + # ideally we run on 3.8 and 3.9 as well, however we are limited in resources. + python-version: 3.8 + python-tag: "py38" steps: - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Install Dependencies run: | set -eux - sudo apt-get install -y pandoc doxygen + sudo yum makecache --refresh + sudo yum install -y pandoc doxygen pip install -r docs/requirements.txt - name: Setup SSH (Click me for login details) uses: ./.github/actions/setup-ssh @@ -40,15 +43,17 @@ jobs: make html docpush: - runs-on: ubuntu-18.04 + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: linux.2xlarge + # ideally we run on 3.8 and 3.9 as well, however we are limited in resources. + python-version: 3.8 + python-tag: "py38" needs: docbuild # if: ${{ github.ref == 'refs/heads/main' }} steps: - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - architecture: x64 - name: Checkout MultiPy uses: actions/checkout@v2 - name: Set Identity @@ -63,7 +68,8 @@ jobs: - name: Install Dependencies run: | set -eux - sudo apt-get install -y pandoc doxygen + sudo yum makecache --refresh + sudo yum install -y pandoc doxygen python -m pip install --upgrade pip pip install -r docs/requirements.txt - name: Build