Skip to content

Commit 5621b99

Browse files
authored
MAINT: update pymechanical version (#221)
1 parent f182b96 commit 5621b99

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

.github/workflows/ci_cd.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111

1212
env:
13-
MAIN_PYTHON_VERSION: '3.9'
13+
MAIN_PYTHON_VERSION: '3.10'
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
@@ -45,7 +45,7 @@ jobs:
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

doc/source/conf.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from datetime import datetime
44

55
import ansys.mechanical.core
6-
from ansys_sphinx_theme import ansys_favicon, pyansys_logo_black
6+
from ansys_sphinx_theme import ansys_favicon
77
import pyvista
88
from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
99
from sphinx_gallery.sorting import FileNameSortKey
@@ -15,13 +15,14 @@
1515
release = version = "0.1.dev0"
1616

1717
# Select desired logo, theme, and declare the html title
18-
html_logo = pyansys_logo_black
1918
html_favicon = ansys_favicon
2019
html_theme = "ansys_sphinx_theme"
2120
html_short_title = html_title = "PyMechanical Embedding Examples"
21+
html_show_sourcelink = False
2222

2323
# specify the location of your github repo
2424
html_theme_options = {
25+
"logo": "pyansys",
2526
"github_url": "https://github.com/ansys/pymechanical-embedding-examples",
2627
"show_prev_next": False,
2728
"show_breadcrumbs": True,
@@ -36,12 +37,6 @@
3637
"icon": "fa fa-comment fa-fw",
3738
},
3839
],
39-
"cheatsheet": {
40-
"url": "https://cheatsheets.docs.pyansys.com/pymechanical_cheat_sheet.pdf",
41-
"title": "PyMechanical cheat sheet",
42-
"thumbnail": "https://cheatsheets.docs.pyansys.com/pymechanical_cheat_sheet.png",
43-
"needs_download": True,
44-
},
4540
}
4641

4742
# Sphinx extensions

requirements/requirements_doc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#PyMechanical
2-
ansys-mechanical-core[doc]==0.11.3
3-
2+
ansys-mechanical-core[doc]==0.11.5
3+
ansys-mechanical-core[viz]==0.11.5
44
# Documentation dependencies
55
pyvista[jupyter]>=0.39.1
66
ipyvtklink==0.2.3

0 commit comments

Comments
 (0)