Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch default ANSYS version to 242 #1266

Merged
merged 1 commit into from
Nov 14, 2023
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
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
tests:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
wheel: true
wheelhouse: false
Expand All @@ -91,7 +91,7 @@ jobs:
tests_any:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
wheel: true
wheelhouse: false
Expand All @@ -103,15 +103,15 @@ jobs:
name: "Build and Test on Docker"
uses: ./.github/workflows/test_docker.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit

docker_examples:
name: "Run examples on Docker"
uses: ./.github/workflows/examples_docker.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit
Expand All @@ -120,7 +120,7 @@ jobs:
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
event_name: ${{ github.event_name }}
secrets: inherit
Expand Down Expand Up @@ -157,11 +157,22 @@ jobs:
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/examples.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
secrets: inherit

retro_241:
name: "retro 241"
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: "241"
python_versions: '["3.9"]'
DOCSTRING: false
standalone_suffix: ''
secrets: inherit

retro_232:
name: "retro 232"
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
Expand Down Expand Up @@ -198,7 +209,7 @@ jobs:
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft
uses: ./.github/workflows/pydpf-post.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
post_branch: "master"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
test_docstrings: "true"
Expand Down
32 changes: 25 additions & 7 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
#* * * * *

env:
ANSYS_VERSION: 241
ANSYS_VERSION: 242
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
MAIN_PYTHON_VERSION: '3.9'

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
tests:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9", "3.10", "3.11"]'
wheel: true
wheelhouse: true
Expand All @@ -93,7 +93,7 @@ jobs:
tests_any:
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9", "3.10", "3.11"]'
wheel: true
wheelhouse: false
Expand All @@ -104,19 +104,28 @@ jobs:
docs:
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
event_name: ${{ github.event_name }}
secrets: inherit

examples:
uses: ./.github/workflows/examples.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9", "3.10", "3.11"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
secrets: inherit

retro_241:
name: "retro 241"
uses: ./.github/workflows/tests.yml
with:
ANSYS_VERSION: "241"
python_versions: '["3.9"]'
DOCSTRING: false
secrets: inherit

retro_232:
name: "retro 232"
uses: ./.github/workflows/tests.yml
Expand Down Expand Up @@ -144,6 +153,15 @@ jobs:
DOCSTRING: false
secrets: inherit

pydpf-post_242:
name: "PyDPF-Post with 242"
uses: ./.github/workflows/pydpf-post.yml
with:
ANSYS_VERSION: "242"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
test_docstrings: "true"
secrets: inherit

pydpf-post_241:
name: "PyDPF-Post with 241"
uses: ./.github/workflows/pydpf-post.yml
Expand Down Expand Up @@ -178,15 +196,15 @@ jobs:
name: "Build and Test on Docker"
uses: ./.github/workflows/test_docker.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
secrets: inherit

docker_examples:
name: "Run examples on Docker"
uses: ./.github/workflows/examples_docker.yml
with:
ANSYS_VERSION: "241"
ANSYS_VERSION: "242"
python_versions: '["3.9", "3.10", "3.11"]'
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
secrets: inherit
Expand Down
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
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: "241"
default: "242"
# Can be called manually
workflow_dispatch:
inputs:
Expand All @@ -25,7 +25,7 @@ on:
description: "ANSYS version to run."
required: true
type: string
default: "241"
default: "242"

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: "241"
default: "242"
wheel:
required: false
type: string
Expand Down Expand Up @@ -46,7 +46,7 @@ on:
description: "ANSYS version"
required: true
type: string
default: "231"
default: "242"
wheel:
description: "Generate a wheel"
required: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update_operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
description: "ANSYS version"
required: false
type: string
default: "241"
default: "242"
standalone_branch_suffix:
description: "Suffix of the branch on standalone"
required: false
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
with:
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
ANSYS_VERSION : ${{ github.event.inputs.ANSYS_VERSION || '241' }}
ANSYS_VERSION : ${{ github.event.inputs.ANSYS_VERSION || '242' }}

- name: "Update ansys-grpc-dpf"
shell: bash
Expand Down Expand Up @@ -123,9 +123,9 @@ jobs:
src/ansys/dpf/core/operators/*
docs/source/_static/dpf_operators.html
commit-message: update generated code
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || '241' }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ 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 || '241' }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
labels: maintenance

- name: "Kill all servers"
Expand Down