1010 - main
1111
1212env :
13- MAIN_PYTHON_VERSION : ' 3.9 '
13+ MAIN_PYTHON_VERSION : ' 3.10 '
1414
1515concurrency :
1616 group : ${{ github.workflow }}-${{ github.ref }}
4545 doc-build :
4646 name : Documentation building
4747 runs-on : public-ubuntu-latest-8-cores
48- timeout-minutes : 30
48+ timeout-minutes : 60
4949 container :
5050 image : ghcr.io/ansys/mechanical:24.2.0
5151 options : --entrypoint /bin/bash
@@ -59,35 +59,32 @@ jobs:
5959 - name : Set up Python
6060 run : |
6161 apt update
62- apt install -y python3.9 python3-pip
63- ln -s /usr/bin/python3.9 /usr/bin/python
64- python -m pip install --upgrade pip
65- python --version
66- pip3 --version
67-
68- - name : Install system dependencies
69- run : |
70- apt update
71- apt install -y make
62+ apt install --reinstall ca-certificates
63+ apt install lsb-release xvfb software-properties-common make -y
64+ add-apt-repository ppa:deadsnakes/ppa -y
65+ apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
66+ python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
67+ apt install --reinstall ca-certificates
68+ apt install lsb-release xvfb software-properties-common make -y
69+ add-apt-repository ppa:deadsnakes/ppa -y
70+ apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
71+ python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
7272
7373 - name : Install Python requirements
7474 run : |
75- pip3 install -r requirements/requirements_doc.txt
76-
77- - name : Retrieve PyMechanial version
78- run : |
79- echo "PYMECHANICAL_VERSION=$(python -c 'from ansys.mechanical.core import __version__; print(__version__)')" >> $GITHUB_ENV
80- echo "PyMechanical version is: $(python -c "from ansys.mechanical.core import __version__; print(__version__)")"
81- id : version
75+ . /env/bin/activate
76+ pip install --upgrade pip
77+ pip install -r requirements/requirements_doc.txt
8278
8379 - name : Build docs
8480 env :
8581 SPHINXOPTS : ' -j auto'
8682 LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
87- ANSYSCL242_DIR : /install/ansys_inc/v242/licensingclient
8883 ANSYSLMD_LICENSE_FILE : 1055@${{ secrets.LICENSE_SERVER }}
8984 ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL : 0
9085 run : |
86+ . /env/bin/activate
87+ . /env/bin/activate
9188 xvfb-run mechanical-env make -C doc html > doc_build_output.txt 2>&1 || true
9289 cat doc_build_output.txt
9390 #
@@ -104,6 +101,7 @@ jobs:
104101 env :
105102 SPHINXOPTS : ' -j auto -W --keep-going'
106103 run : |
104+ . /env/bin/activate
107105 xvfb-run make -C doc linkcheck > doc_linkcheck_output.txt 2>&1 || true
108106 cat doc_linkcheck_output.txt
109107 if grep -q "build succeeded" doc_build_output.txt; then
0 commit comments