-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/plot_deform
- Loading branch information
Showing
47 changed files
with
3,282 additions
and
1,135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- dependabot[bot] | ||
categories: | ||
- title: Enhancements | ||
labels: | ||
- enhancement | ||
- title: Bug fixes | ||
labels: | ||
- bug | ||
- title: Documentation | ||
labels: | ||
- documentation | ||
- title: Examples | ||
labels: | ||
- examples | ||
- title: CI/CD | ||
labels: | ||
- CI/CD | ||
- title: Maintenance | ||
labels: | ||
- maintenance | ||
- dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,14 @@ on: | |
workflow_call: | ||
inputs: | ||
version: | ||
description: "Release version as 'X.Y.Z'" | ||
description: "Release version as 'vX.Y.Z'" | ||
type: string | ||
required: true | ||
# Can be called manually | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Release version as 'X.Y.Z'" | ||
description: "Release version as 'vX.Y.Z'" | ||
type: string | ||
required: true | ||
|
||
|
@@ -39,11 +39,11 @@ jobs: | |
print(f"Deleted {example}") | ||
- name: "Download Release Asset - HTML" | ||
uses: dsaltares/[email protected].1 | ||
uses: dsaltares/[email protected].2 | ||
with: | ||
file: HTML-doc-ansys-dpf-post.zip | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: tags/v${{ inputs.version }} | ||
version: tags/${{ inputs.version }} | ||
|
||
- name: "Extract ipynb examples" | ||
shell: python | ||
|
@@ -69,8 +69,8 @@ jobs: | |
- name: "Push changes" | ||
shell: bash | ||
run: | | ||
git config --global user.name "rlagha" | ||
git config --global user.name "pyansys-ci-bot" | ||
git add . | ||
git status | ||
git commit -a -m ${{ inputs.version }} | ||
git commit -a -m ${{ inputs.version }} || exit 0 | ||
git push https://${{ secrets.PYANSYS_CI_BOT_TOKEN }}@github.com/ansys/pydpf-post.git --follow-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ env: | |
MODULE: 'post' | ||
DOCUMENTATION_CNAME: 'post.docs.pyansys.com' | ||
MAIN_PYTHON_VERSION: '3.10' | ||
ANSYS_VERSION: '242' | ||
ANSYS_VERSION: '252' | ||
|
||
jobs: | ||
debug: | ||
|
@@ -43,7 +43,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup Python" | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
|
||
|
@@ -81,7 +81,8 @@ jobs: | |
MODULE: ${{env.MODULE}} | ||
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
install_extras: plotting | ||
wheel: true | ||
# Upload the wheel artifact for only one of the OS as it is OS-agnostic | ||
wheel: ${{ (matrix.python-version == env.MAIN_PYTHON_VERSION) && (matrix.os == 'windows-latest') }} | ||
wheelhouse: true | ||
standalone_suffix: ${{ inputs.standalone_suffix || ''}} | ||
|
||
|
@@ -96,6 +97,7 @@ jobs: | |
|
||
- name: "Test Docstrings" | ||
uses: ansys/pydpf-actions/[email protected] | ||
if: ${{ matrix.python-version == env.MAIN_PYTHON_VERSION }} | ||
with: | ||
MODULE: ${{env.MODULE}} | ||
PACKAGE_NAME: ${{env.PACKAGE_NAME}} | ||
|
@@ -118,7 +120,7 @@ jobs: | |
path: tests/junit/test-results.xml | ||
|
||
- name: "Upload coverage to Codecov" | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
|
||
retro: | ||
name: "Retro-compatibility" | ||
|
@@ -129,7 +131,7 @@ jobs: | |
matrix: | ||
python-version: ["3.10"] | ||
os: ["windows-latest", "ubuntu-latest"] | ||
ANSYS_VERSION: ["241", "232", "231", "222"] | ||
ANSYS_VERSION: ["251", "242", "241", "232", "231", "222"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -180,13 +182,13 @@ jobs: | |
if: always() | ||
|
||
- name: "Upload coverage to Codecov" | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
|
||
examples: | ||
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: "242" | ||
ANSYS_VERSION: "252" | ||
python_versions: '["3.10"]' | ||
standalone_suffix: ${{ inputs.standalone_suffix || ''}} | ||
secrets: inherit | ||
|
@@ -195,7 +197,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: "242" | ||
ANSYS_VERSION: "252" | ||
python_version: "3.10" | ||
standalone_suffix: ${{ inputs.standalone_suffix || ''}} | ||
event_name: ${{ github.event_name }} | ||
|
@@ -207,9 +209,11 @@ jobs: | |
needs: [docs] | ||
steps: | ||
- name: "Upload development documentation" | ||
uses: ansys/actions/doc-deploy-dev@v5 | ||
uses: ansys/actions/doc-deploy-dev@v8 | ||
with: | ||
cname: ${{ env.DOCUMENTATION_CNAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | ||
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} | ||
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} | ||
doc-artifact-name: HTML-doc-ansys-dpf-post.zip | ||
decompress-artifact: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
standalone_branch_suffix: | ||
description: 'Suffix of the branch on standalone' | ||
required: false | ||
default: '.sp01' | ||
default: '.pre0' | ||
|
||
#┌───────────── minute (0 - 59) | ||
#│ ┌───────────── hour (0 - 23) | ||
|
@@ -28,7 +28,7 @@ env: | |
MODULE: 'post' | ||
DOCUMENTATION_CNAME: 'post.docs.pyansys.com' | ||
MAIN_PYTHON_VERSION: '3.10' | ||
ANSYS_VERSION: '241' | ||
ANSYS_VERSION: '251' | ||
|
||
jobs: | ||
debug: | ||
|
@@ -46,7 +46,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup Python" | ||
uses: actions/setup-python@v5.0.0 | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ env.MAIN_PYTHON_VERSION }} | ||
|
||
|
@@ -62,7 +62,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ANSYS_VERSION: ["241"] | ||
ANSYS_VERSION: ["251"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
os: ["windows-latest", "ubuntu-latest"] | ||
|
||
|
@@ -85,9 +85,10 @@ jobs: | |
MODULE: ${{env.MODULE}} | ||
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}} | ||
install_extras: plotting | ||
wheel: true | ||
# Upload the wheel artifact for only one of the OS as it is OS-agnostic | ||
wheel: ${{ (matrix.python-version == env.MAIN_PYTHON_VERSION) && (matrix.os == 'windows-latest') }} | ||
wheelhouse: true | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.sp01' }} | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} | ||
|
||
- name: "Prepare Testing Environment" | ||
uses: ansys/pydpf-actions/[email protected] | ||
|
@@ -122,7 +123,7 @@ jobs: | |
path: tests/junit/test-results.xml | ||
|
||
- name: "Upload coverage to Codecov" | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
|
||
retro: | ||
name: "Retro-compatibility" | ||
|
@@ -132,7 +133,7 @@ jobs: | |
matrix: | ||
python-version: ["3.10"] | ||
os: ["windows-latest", "ubuntu-latest"] | ||
ANSYS_VERSION: ["232", "231", "222"] | ||
ANSYS_VERSION: ["242", "241", "232", "231", "222"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -183,22 +184,22 @@ jobs: | |
if: always() | ||
|
||
- name: "Upload coverage to Codecov" | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
|
||
examples: | ||
uses: ./.github/workflows/examples.yml | ||
with: | ||
ANSYS_VERSION: '241' | ||
ANSYS_VERSION: '251' | ||
python_versions: '["3.10"]' | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.sp01' }} | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} | ||
secrets: inherit | ||
|
||
docs: | ||
uses: ./.github/workflows/docs.yml | ||
with: | ||
ANSYS_VERSION: '241' | ||
ANSYS_VERSION: '251' | ||
python_version: "3.10" | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.sp01' }} | ||
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }} | ||
event_name: ${{ github.event_name }} | ||
secrets: inherit | ||
|
||
|
@@ -215,7 +216,7 @@ jobs: | |
run: ls -R | ||
|
||
- name: "Create draft release" | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
./**/*.whl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.