Skip to content

Commit e484b66

Browse files
jorgepilotomhoeijmpyansys-ci-bot
authored
fix: run examples in pipelines (#1040)
Co-authored-by: mhoeijm <[email protected]> Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 1cd83aa commit e484b66

28 files changed

+501
-187
lines changed

.github/workflows/ci_cd_main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ jobs:
4040
uv tool install tox --with tox-uv
4141
4242
- name: "Build documentation"
43+
env:
44+
PYANSYS_HEART_FLUENT_VERSION: 24.1
45+
PYFLUENT_LAUNCH_CONTAINER: 0
46+
PYANSYS_HEART_LSDYNA_PATH: C:\Program Files\ANSYS Inc\LS-DYNA\R16.0\windows\R16.0.exe
47+
PYANSYS_HEART_LSDYNA_PLATFORM: windows
48+
PYANSYS_HEART_LSDYNA_TYPE: "smp"
49+
LSTC_LICENSE: ansys
50+
AWP_ROOT241: C:\\Program Files\\ANSYS Inc\\v241
51+
DPF_STANDALONE_PATH: C:\\Program Files\\ANSYS Inc\\dpf-server-2024.2rc0
52+
PYFLUENT_UI_MODE: no_gui # default hidden_gui fails on self-hosted runner
53+
NIGHTLY_DOC_BUILD: 0
4354
run: |
4455
tox -e doc-links,doc-html,doc-pdf
4556

.github/workflows/ci_cd_night.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,18 @@ jobs:
7676
run: |
7777
uv tool run tox -e tests -x testenv.deps+="-e dpf-standalone/v${{ env.ANSYS_VERSION }}" -- -m "${{ matrix.tests.markers }}" -vv
7878
79+
doc-style:
80+
name: Documentation Style Check
81+
runs-on: ubuntu-latest
82+
steps:
83+
- uses: ansys/actions/doc-style@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
84+
with:
85+
token: ${{ secrets.GITHUB_TOKEN }}
86+
7987
doc-build:
8088
name: "Build documentation"
8189
runs-on: [self-hosted, pyhealth]
90+
needs: doc-style
8291
steps:
8392

8493
- name: "Checkout the project"
@@ -94,6 +103,17 @@ jobs:
94103
uv tool install tox --with tox-uv
95104
96105
- name: "Build documentation"
106+
env:
107+
PYANSYS_HEART_FLUENT_VERSION: 24.1
108+
PYFLUENT_LAUNCH_CONTAINER: 0
109+
PYANSYS_HEART_LSDYNA_PATH: C:\Program Files\ANSYS Inc\LS-DYNA\R16.0\windows\R16.0.exe
110+
PYANSYS_HEART_LSDYNA_PLATFORM: windows
111+
PYANSYS_HEART_LSDYNA_TYPE: "smp"
112+
LSTC_LICENSE: ansys
113+
AWP_ROOT241: C:\\Program Files\\ANSYS Inc\\v241
114+
DPF_STANDALONE_PATH: C:\\Program Files\\ANSYS Inc\\dpf-server-2024.2rc0
115+
PYFLUENT_UI_MODE: no_gui # default hidden_gui fails on self-hosted runner
116+
NIGHTLY_DOC_BUILD: 0
97117
run: |
98118
tox -e doc-links,doc-html,doc-pdf
99119

.github/workflows/ci_cd_pr.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ jobs:
115115
uv tool install tox --with tox-uv
116116
117117
- name: "Build documentation"
118+
env:
119+
PYANSYS_HEART_FLUENT_VERSION: 24.1
120+
PYFLUENT_LAUNCH_CONTAINER: 0
121+
PYANSYS_HEART_LSDYNA_PATH: C:\Program Files\ANSYS Inc\LS-DYNA\R16.0\windows\R16.0.exe
122+
PYANSYS_HEART_LSDYNA_PLATFORM: windows
123+
PYANSYS_HEART_LSDYNA_TYPE: "smp"
124+
LSTC_LICENSE: ansys
125+
AWP_ROOT241: C:\\Program Files\\ANSYS Inc\\v241
126+
DPF_STANDALONE_PATH: C:\\Program Files\\ANSYS Inc\\dpf-server-2024.2rc0
127+
PYFLUENT_UI_MODE: no_gui # default hidden_gui fails on self-hosted runner
128+
NIGHTLY_DOC_BUILD: 0
118129
run: |
119130
tox -e doc-links,doc-html,doc-pdf
120131

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
rev: v2.4.1
1010
hooks:
1111
- id: codespell
12-
exclude: ^(tests/heart/assets\/)
12+
exclude: ^(tests/heart/assets.*|src/ansys/health/heart/data_examples.*)
1313
args: [-L solf, "--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt", "-w"]
1414

1515
- repo: https://github.com/pre-commit/pre-commit-hooks
-574 KB
Binary file not shown.
-101 KB
Binary file not shown.
-262 KB
Binary file not shown.
-22.4 KB
Binary file not shown.
-24 KB
Binary file not shown.
-35.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)