Skip to content

Commit ce08b8f

Browse files
authored
Do not run doctest for retro PyDPF-Post (#1122)
* Do not run doctest for retro doctest for PyDPF-Post * Do not run doctest for retro doctest for PyDPF-Post * Fix condition
1 parent 3cb7b0f commit ce08b8f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,5 @@ jobs:
188188
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
189189
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
190190
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v241/dist' }}
191+
test_docstrings: "true"
191192
secrets: inherit

.github/workflows/ci_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
with:
123123
ANSYS_VERSION: "241"
124124
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
125+
test_docstrings: "true"
125126
secrets: inherit
126127

127128
pydpf-post_232:

.github/workflows/pydpf-post.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: string
2828
default: ''
29+
test_docstrings:
30+
description: "whether to run doctest"
31+
required: false
32+
type: string
33+
default: "false"
2934
# Can be called manually
3035
workflow_dispatch:
3136
inputs:
@@ -53,6 +58,11 @@ on:
5358
required: false
5459
type: string
5560
default: ''
61+
test_docstrings:
62+
description: "whether to run doctest"
63+
required: false
64+
type: string
65+
default: "false"
5666

5767
env:
5868
PACKAGE_NAME: ansys-dpf-core
@@ -141,6 +151,7 @@ jobs:
141151
MODULE: post
142152
PACKAGE_NAME: ansys-dpf-post
143153
working-directory: pydpf-post/src
154+
if: inputs.test_docstrings == 'true'
144155

145156
- name: "Test API"
146157
shell: bash

0 commit comments

Comments
 (0)