+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 30 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
description: "ANSYS version"
required: false
type: string
default: "252"
default: vars.ANSYS_VERSION_DEFAULT
standalone_branch_suffix:
description: 'Suffix of the branch on standalone'
required: false
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
uses: ./.github/workflows/tests.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
python_versions: '["3.10"]'
wheel: true
wheelhouse: false
Expand All @@ -116,7 +116,7 @@ jobs:
uses: ./.github/workflows/tests.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
python_versions: '["3.10"]'
wheel: true
wheelhouse: false
Expand All @@ -129,7 +129,7 @@ jobs:
uses: ./.github/workflows/test_docker.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
secrets: inherit

Expand All @@ -138,7 +138,7 @@ jobs:
uses: ./.github/workflows/examples_docker.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
python_versions: '["3.10"]'
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
secrets: inherit
Expand All @@ -148,7 +148,7 @@ jobs:
uses: ./.github/workflows/docs.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
event_name: ${{ github.event_name }}
python_version: "3.11"
Expand All @@ -174,11 +174,34 @@ jobs:
uses: ./.github/workflows/examples.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
python_versions: '["3.10"]'
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
secrets: inherit

pydpf-post:
name: "PyDPF-Post"
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/pydpf-post.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
post_branch: "master"
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
test_docstrings: "true"
secrets: inherit

retro_252:
name: "retro 252"
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "252"
python_versions: '["3.10"]'
DOCSTRING: false
standalone_suffix: ''
secrets: inherit

retro_251:
name: "retro 251"
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
Expand Down Expand Up @@ -242,15 +265,3 @@ jobs:
python_versions: '["3.10"]'
DOCSTRING: false
secrets: inherit

pydpf-post:
name: "PyDPF-Post"
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/pydpf-post.yml
needs: pick_server_suffix
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '252' }}
post_branch: "master"
standalone_suffix: ${{needs.pick_server_suffix.outputs.suffix}}
test_docstrings: "true"
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand All @@ -34,7 +34,7 @@ on:
description: "ANSYS version"
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand All @@ -29,7 +29,7 @@ on:
description: "ANSYS version to run."
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand All @@ -29,7 +29,7 @@ on:
description: "ANSYS version to run."
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pydpf-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand All @@ -32,7 +32,7 @@ on:
description: "ANSYS version"
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
standalone_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
# Can be called manually
workflow_dispatch:
inputs:
Expand All @@ -25,7 +25,7 @@ on:
description: "ANSYS version to run."
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT

env:
PACKAGE_NAME: ansys-dpf-core
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
ANSYS_VERSION:
required: false
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
wheel:
required: false
type: string
Expand Down Expand Up @@ -46,7 +46,7 @@ on:
description: "ANSYS version"
required: true
type: string
default: "251"
default: vars.ANSYS_VERSION_DEFAULT
wheel:
description: "Generate a wheel"
required: false
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/update_operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ on:
required: false
type: string
default: ""

ANSYS_VERSION:
description: "ANSYS version"
required: false
type: string
default: "252"
default: vars.ANSYS_VERSION_DEFAULT
standalone_branch_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down Expand Up @@ -49,7 +48,7 @@ jobs:
with:
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
ANSYS_VERSION : ${{ github.event.inputs.ANSYS_VERSION || '252' }}
ANSYS_VERSION : ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}

- name: "Update ansys-grpc-dpf"
shell: bash
Expand Down Expand Up @@ -133,9 +132,9 @@ jobs:
src/ansys/dpf/core/operators/*
doc/source/_static/dpf_operators.html
commit-message: update generated code
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || '252' }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
body: An update of generated code has been triggered either manually or by an update in the dpf-standalone repository.
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || '252' }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
labels: server-sync
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
reviewers: ${{ github.ref_name == 'master' && 'ansys/dpf_integration_proxies' || '' }}
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载