diff --git a/.github/workflows/ci_cd_nightly.yml b/.github/workflows/ci_cd_nightly.yml index fbebf836..d03065e5 100644 --- a/.github/workflows/ci_cd_nightly.yml +++ b/.github/workflows/ci_cd_nightly.yml @@ -6,7 +6,7 @@ on: - cron: "0 3 * * *" env: - MAIN_PYTHON_VERSION: '3.9' + MAIN_PYTHON_VERSION: '3.10' DEV_MAJOR_REV: '25' DEV_MINOR_REV: '1' DEV_REV: '25.1_candidate' @@ -72,7 +72,7 @@ jobs: name: Documentation building runs-on: public-ubuntu-latest-8-cores needs: ['saving-image-versions'] - timeout-minutes: 30 + timeout-minutes: 60 container: image: ${{ needs.saving-image-versions.outputs.dev_docker_image_version }} options: --entrypoint /bin/bash @@ -83,30 +83,22 @@ jobs: - name: Set up Python run: | apt update - apt install -y python3.9 python3-pip - ln -s /usr/bin/python3.9 /usr/bin/python - python -m pip install --upgrade pip - python --version - pip3 --version - - - name: Install system dependencies - run: | - apt update - apt install -y make + apt install --reinstall ca-certificates + apt install lsb-release xvfb software-properties-common make -y + add-apt-repository ppa:deadsnakes/ppa -y + apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv + python${{ env.MAIN_PYTHON_VERSION }} -m venv /env + apt install --reinstall ca-certificates + apt install lsb-release xvfb software-properties-common make -y + add-apt-repository ppa:deadsnakes/ppa -y + apt install -y python${{ env.MAIN_PYTHON_VERSION }} python${{ env.MAIN_PYTHON_VERSION }}-venv + python${{ env.MAIN_PYTHON_VERSION }} -m venv /env - name: Install Python requirements run: | - pip3 install -r requirements/requirements_doc.txt - - - name: Retrieve PyMechanial version - run: | - echo "PYMECHANICAL_VERSION=$(python -c 'from ansys.mechanical.core import __version__; print(__version__)')" >> $GITHUB_ENV - echo "PyMechanical version is: $(python -c "from ansys.mechanical.core import __version__; print(__version__)")" - id: version - - - name: Find Mechanical version - run: | - find-mechanical + . /env/bin/activate + pip install --upgrade pip + pip install -r requirements/requirements_doc.txt - name: Update PyMechanical version in examples for 251 run: | @@ -116,10 +108,10 @@ jobs: env: SPHINXOPTS: '-j auto' LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }} - ANSYSCL242_DIR: /install/ansys_inc/v${{ needs.saving-image-versions.outputs.major }}${{ needs.saving-image-versions.outputs.minor }}/licensingclient ANSYSLMD_LICENSE_FILE: 1055@${{ secrets.LICENSE_SERVER }} ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | + . /env/bin/activate xvfb-run mechanical-env make -C doc html > doc_build_output.txt 2>&1 || true cat doc_build_output.txt #