Skip to content

Commit

Permalink
WIP: remove another workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Oct 27, 2023
1 parent da16221 commit 14cefd5
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 14cefd5

Please sign in to comment.