From 7b99e93082e31ed587e49e33b56014b9b6a64b78 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 13:49:28 +0100 Subject: [PATCH 1/7] Add timeout to PyDPF-Post tests Signed-off-by: paul.profizi --- .github/workflows/pydpf-post.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index 6548caaa15..00a12184e8 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -153,6 +153,7 @@ jobs: PACKAGE_NAME: ansys-dpf-post working-directory: pydpf-post/src if: inputs.test_docstrings == 'true' + timeout-minutes: 10 - name: "Test API" shell: bash @@ -160,6 +161,7 @@ jobs: run: | pytest $DEBUG --reruns 2 . if: always() + timeout-minutes: 20 - name: "Kill all servers" uses: ansys/pydpf-actions/kill-dpf-servers@v2.3 From a3b15b92e0da90c1516232c5c9ec86c339fe7b3b Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 13:49:55 +0100 Subject: [PATCH 2/7] Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi --- .github/workflows/releaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 6fbd86620a..1bf4aa64ef 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -75,7 +75,7 @@ jobs: with: file: HTML-doc-ansys-dpf-core.zip token: ${{ secrets.GITHUB_TOKEN }} - version: tags/${{ github.event.inputs.release_tag || needs.get_latest_tag.outputs.version }} + version: ${{ github.event.inputs.release_tag && format('tags/{0}', github.event.inputs.release_tag) || format('tags/{0}', needs.get_latest_tag.outputs.version) }} - name: "List downloaded assets" shell: bash From 96bcbd1ab8b13a2e03cecce94c93dd0389741406 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 14:13:05 +0100 Subject: [PATCH 3/7] Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi --- .github/workflows/releaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 1bf4aa64ef..849414b914 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -89,7 +89,7 @@ jobs: path: HTML-doc-ansys-dpf-core.zip - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@v4 + uses: ansys/actions/doc-deploy-stable@v5 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} From 3f0a02e9222f34f3c6c630c44567df4d922e57f2 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 14:20:53 +0100 Subject: [PATCH 4/7] Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi --- .github/workflows/releaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 849414b914..aa5e25b7eb 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -83,7 +83,7 @@ jobs: ls - name: "Upload artifact" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: HTML-doc-ansys-dpf-core.zip path: HTML-doc-ansys-dpf-core.zip From 28dff7e4b34af9e0f3e90f5a45b4de0b03eaeb2e Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 14:27:27 +0100 Subject: [PATCH 5/7] Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi --- .github/workflows/releaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index aa5e25b7eb..a83b5a344f 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -121,7 +121,7 @@ jobs: echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v4 + uses: ansys/actions/doc-deploy-index@v5 with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} index-name: pydpf-core-v${{ env.VERSION_MEILI }} From 88f7c5099415376df7c8f10808363253fa14ab21 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 14:32:10 +0100 Subject: [PATCH 6/7] ansys_lab.yml do not fail on no diff Signed-off-by: paul.profizi --- .github/workflows/ansys_lab.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansys_lab.yml b/.github/workflows/ansys_lab.yml index 4af72b7e0a..dafbb5b493 100644 --- a/.github/workflows/ansys_lab.yml +++ b/.github/workflows/ansys_lab.yml @@ -72,5 +72,5 @@ jobs: 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-core.git --follow-tags From 19a1cccaf97897f08efe751759e39716cfa96c64 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 21 Feb 2024 14:37:31 +0100 Subject: [PATCH 7/7] Update checkout to v4 and release-downloader to v1.9 for new nodeJS 20 Signed-off-by: paul.profizi --- .github/workflows/ansys_lab.yml | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/ci_release.yml | 4 ++-- .github/workflows/docs.yml | 2 +- .github/workflows/examples.yml | 2 +- .github/workflows/examples_docker.yml | 2 +- .github/workflows/pydpf-post.yml | 2 +- .github/workflows/releaser.yml | 2 +- .github/workflows/test_docker.yml | 2 +- .github/workflows/tests.yml | 2 +- .github/workflows/update_operators.yml | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ansys_lab.yml b/.github/workflows/ansys_lab.yml index dafbb5b493..6dbde9f114 100644 --- a/.github/workflows/ansys_lab.yml +++ b/.github/workflows/ansys_lab.yml @@ -24,7 +24,7 @@ jobs: name: "Deploy examples for Ansys Lab" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ env.DESTINATION_BRANCH_NAME }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3931a90946..3f8729ea8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: name: "Style Check" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Setup Python" uses: actions/setup-python@v4.6.0 @@ -81,7 +81,7 @@ jobs: name: "Build linux1 wheel" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Install requirements" run: pip install -r requirements/requirements_build.txt diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 235cd282be..c80d4c6072 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -44,7 +44,7 @@ jobs: name: "Style Check" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Setup Python" uses: actions/setup-python@v4.6.0 @@ -61,7 +61,7 @@ jobs: name: "Build linux1 wheel" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Install requirements" run: pip install -r requirements/requirements_build.txt diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7ccb7d2eca..eb139ba897 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -59,7 +59,7 @@ jobs: name: "Documentation" runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set licensing if necessary" if: inputs.ANSYS_VERSION > 231 diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 9cb68d74cf..ea03738104 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -62,7 +62,7 @@ jobs: os: ["windows-latest", "ubuntu-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set licensing if necessary" if: inputs.ANSYS_VERSION > 231 diff --git a/.github/workflows/examples_docker.yml b/.github/workflows/examples_docker.yml index f5320ce21c..d26103aed4 100644 --- a/.github/workflows/examples_docker.yml +++ b/.github/workflows/examples_docker.yml @@ -65,7 +65,7 @@ jobs: os: ["ubuntu-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Setup Python" uses: actions/setup-python@v4.6.1 diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index 00a12184e8..4b070e8dfb 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -59,7 +59,7 @@ jobs: python-version: ["3.9"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set licensing if necessary" if: inputs.ANSYS_VERSION > 231 diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index a83b5a344f..d9e67f3ca4 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -47,7 +47,7 @@ jobs: needs: get_latest_tag steps: - name: "Download Release Assets" - uses: robinraju/release-downloader@v1.8 + uses: robinraju/release-downloader@v1.9 with: tag: ${{ github.event.inputs.release_tag || needs.get_latest_tag.outputs.version }} fileName: "*.whl" diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index 69502e21ed..9bb6630146 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -44,7 +44,7 @@ jobs: os: ["ubuntu-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Setup Python" uses: actions/setup-python@v4.6.1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index deffbdb6d3..fd482e1cba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -100,7 +100,7 @@ jobs: os: ["windows-latest", "ubuntu-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: "Set licensing if necessary" if: inputs.ANSYS_VERSION > 231 diff --git a/.github/workflows/update_operators.yml b/.github/workflows/update_operators.yml index 623662222c..7ab5918b29 100644 --- a/.github/workflows/update_operators.yml +++ b/.github/workflows/update_operators.yml @@ -36,7 +36,7 @@ jobs: - name: echo distinct ID ${{ github.event.inputs.distinct_id }} run: echo ${{ github.event.inputs.distinct_id }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4.6.0