From 14cefd5ca70fdff37434ed5452f6ff01878b7d2d Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Fri, 27 Oct 2023 09:50:02 +0200 Subject: [PATCH] WIP: remove another workflow for testing --- .github/workflows/build_documentation.yml | 128 +++++++++++----------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 29de2e52338..292140c42e4 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -43,67 +43,67 @@ jobs: vale-config: "doc/.vale.ini" vale-version: "2.29.6" - docs_build: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - - name: Install pyaedt - run: | - pip install .[doc] - - - name: Verify pyaedt can be imported - run: python -c "import pyaedt" - - - name: Retrieve PyAEDT version - id: version - run: | - echo "::set-output name=PYAEDT_VERSION::$(python -c "from pyaedt import __version__; print(__version__)")" - echo "PyAEDT version is: $(python -c "from pyaedt import __version__; print(__version__)")" - - # - name: Cache docs build directory - # uses: actions/cache@v3 - # with: - # path: doc/build - # key: doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }}-${{ github.sha }} - # restore-keys: | - # doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }} - # - name: Cache autosummary - # uses: actions/cache@v3 - # with: - # path: doc/source/**/_autosummary/*.rst - # key: autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }}-${{ github.sha }} - # restore-keys: | - # autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }} - - - name: Install doc build requirements - run: | - sudo apt install graphviz - - # run doc build, without creating the examples directory - # note that we have to add the examples file here since it won't - # be created as gallery is disabled on linux. - - name: Documentation Build - run: | - make -C doc clean - mkdir doc/source/examples -p - echo $'Examples\n========' > doc/source/examples/index.rst - make -C doc html SPHINXOPTS="-j auto -w build_errors.txt -N" - - # Verify that sphinx generates no warnings - - name: Check for warnings - run: | - python doc/print_errors.py - -# - name: Upload Documentation -# uses: actions/upload-artifact@v3 -# with: -# name: Documentation -# path: doc/_build/html -# retention-days: 7 +# docs_build: +# runs-on: ubuntu-20.04 + +# steps: +# - uses: actions/checkout@v4 + +# - name: Setup Python +# uses: actions/setup-python@v4 +# with: +# python-version: 3.8 + +# - name: Install pyaedt +# run: | +# pip install .[doc] + +# - name: Verify pyaedt can be imported +# run: python -c "import pyaedt" + +# - name: Retrieve PyAEDT version +# id: version +# run: | +# echo "::set-output name=PYAEDT_VERSION::$(python -c "from pyaedt import __version__; print(__version__)")" +# echo "PyAEDT version is: $(python -c "from pyaedt import __version__; print(__version__)")" + +# # - name: Cache docs build directory +# # uses: actions/cache@v3 +# # with: +# # path: doc/build +# # key: doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }}-${{ github.sha }} +# # restore-keys: | +# # doc-build-v${{ env.RESET_DOC_BUILD_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }} +# # - name: Cache autosummary +# # uses: actions/cache@v3 +# # with: +# # path: doc/source/**/_autosummary/*.rst +# # key: autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }}-${{ github.sha }} +# # restore-keys: | +# # autosummary-v${{ env.RESET_AUTOSUMMARY_CACHE }}-${{ steps.version.outputs.PYAEDT_VERSION }} + +# - name: Install doc build requirements +# run: | +# sudo apt install graphviz + +# # run doc build, without creating the examples directory +# # note that we have to add the examples file here since it won't +# # be created as gallery is disabled on linux. +# - name: Documentation Build +# run: | +# make -C doc clean +# mkdir doc/source/examples -p +# echo $'Examples\n========' > doc/source/examples/index.rst +# make -C doc html SPHINXOPTS="-j auto -w build_errors.txt -N" + +# # Verify that sphinx generates no warnings +# - name: Check for warnings +# run: | +# python doc/print_errors.py + +# # - name: Upload Documentation +# # uses: actions/upload-artifact@v3 +# # with: +# # name: Documentation +# # path: doc/_build/html +# # retention-days: 7