66 - cron : " 0 3 * * *"
77
88env :
9- MAIN_PYTHON_VERSION : ' 3.9 '
9+ MAIN_PYTHON_VERSION : ' 3.10 '
1010 DEV_MAJOR_REV : ' 25'
1111 DEV_MINOR_REV : ' 1'
1212 DEV_REV : ' 25.1_candidate'
7272 name : Documentation building
7373 runs-on : public-ubuntu-latest-8-cores
7474 needs : ['saving-image-versions']
75- timeout-minutes : 30
75+ timeout-minutes : 60
7676 container :
7777 image : ${{ needs.saving-image-versions.outputs.dev_docker_image_version }}
7878 options : --entrypoint /bin/bash
@@ -83,30 +83,22 @@ jobs:
8383 - name : Set up Python
8484 run : |
8585 apt update
86- apt install -y python3.9 python3-pip
87- ln -s /usr/bin/python3.9 /usr/bin/python
88- python -m pip install --upgrade pip
89- python --version
90- pip3 --version
91-
92- - name : Install system dependencies
93- run : |
94- apt update
95- apt install -y make
86+ apt install --reinstall ca-certificates
87+ apt install lsb-release xvfb software-properties-common make -y
88+ add-apt-repository ppa:deadsnakes/ppa -y
89+ apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
90+ python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
91+ apt install --reinstall ca-certificates
92+ apt install lsb-release xvfb software-properties-common make -y
93+ add-apt-repository ppa:deadsnakes/ppa -y
94+ apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv
95+ python${{ env.MAIN_PYTHON_VERSION }} -m venv /env
9696
9797 - name : Install Python requirements
9898 run : |
99- pip3 install -r requirements/requirements_doc.txt
100-
101- - name : Retrieve PyMechanial version
102- run : |
103- echo "PYMECHANICAL_VERSION=$(python -c 'from ansys.mechanical.core import __version__; print(__version__)')" >> $GITHUB_ENV
104- echo "PyMechanical version is: $(python -c "from ansys.mechanical.core import __version__; print(__version__)")"
105- id : version
106-
107- - name : Find Mechanical version
108- run : |
109- find-mechanical
99+ . /env/bin/activate
100+ pip install --upgrade pip
101+ pip install -r requirements/requirements_doc.txt
110102
111103 - name : Update PyMechanical version in examples for 251
112104 run : |
@@ -116,10 +108,10 @@ jobs:
116108 env :
117109 SPHINXOPTS : ' -j auto'
118110 LICENSE_SERVER : ${{ secrets.LICENSE_SERVER }}
119- ANSYSCL242_DIR : /install/ansys_inc/v${{ needs.saving-image-versions.outputs.major }}${{ needs.saving-image-versions.outputs.minor }}/licensingclient
120111 ANSYSLMD_LICENSE_FILE : 1055@${{ secrets.LICENSE_SERVER }}
121112 ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL : 0
122113 run : |
114+ . /env/bin/activate
123115 xvfb-run mechanical-env make -C doc html > doc_build_output.txt 2>&1 || true
124116 cat doc_build_output.txt
125117 #
0 commit comments