diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5444386104..d040b21fffc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,4 +188,5 @@ jobs: standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }} custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }} custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v241/dist' }} + test_docstrings: "true" secrets: inherit diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 42f5fb50a32..829a82a7f0e 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -122,6 +122,7 @@ jobs: with: ANSYS_VERSION: "241" standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} + test_docstrings: "true" secrets: inherit pydpf-post_232: diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index c5823fecaf3..e712d7915d7 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -26,6 +26,11 @@ on: required: false type: string default: '' + test_docstrings: + description: "whether to run doctest" + required: false + type: string + default: "false" # Can be called manually workflow_dispatch: inputs: @@ -53,6 +58,11 @@ on: required: false type: string default: '' + test_docstrings: + description: "whether to run doctest" + required: false + type: string + default: "false" env: PACKAGE_NAME: ansys-dpf-core @@ -141,6 +151,7 @@ jobs: MODULE: post PACKAGE_NAME: ansys-dpf-post working-directory: pydpf-post/src + if: inputs.test_docstrings == 'true' - name: "Test API" shell: bash