Skip to content

Commit

Permalink
MAINT: update nightly (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinknair authored Aug 15, 2024
1 parent 5621b99 commit 90e48c3
Showing 1 changed file with 16 additions and 24 deletions.
40 changes: 16 additions & 24 deletions .github/workflows/ci_cd_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
#
Expand Down

0 comments on commit 90e48c3

Please sign in to comment.