Skip to content

Commit 316d8a7

Browse files
authored
Several fixes to the release pipeline following 0.11.0 (#1432)
* Add timeout to PyDPF-Post tests Signed-off-by: paul.profizi <[email protected]> * Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> * Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> * Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> * Try fix releaser.yml upload_docs_release job Signed-off-by: paul.profizi <[email protected]> * ansys_lab.yml do not fail on no diff Signed-off-by: paul.profizi <[email protected]> * Update checkout to v4 and release-downloader to v1.9 for new nodeJS 20 Signed-off-by: paul.profizi <[email protected]> --------- Signed-off-by: paul.profizi <[email protected]>
1 parent e13c72f commit 316d8a7

File tree

11 files changed

+20
-18
lines changed

11 files changed

+20
-18
lines changed

.github/workflows/ansys_lab.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: "Deploy examples for Ansys Lab"
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
ref: ${{ env.DESTINATION_BRANCH_NAME }}
3030

@@ -72,5 +72,5 @@ jobs:
7272
git config --global user.name "pyansys-ci-bot"
7373
git add .
7474
git status
75-
git commit -a -m ${{ inputs.version }}
75+
git commit -a -m ${{ inputs.version }} || exit 0
7676
git push https://${{ secrets.PYANSYS_CI_BOT_TOKEN }}@github.com/ansys/pydpf-core.git --follow-tags

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
name: "Style Check"
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868

6969
- name: "Setup Python"
7070
uses: actions/[email protected]
@@ -81,7 +81,7 @@ jobs:
8181
name: "Build linux1 wheel"
8282
runs-on: ubuntu-latest
8383
steps:
84-
- uses: actions/checkout@v3
84+
- uses: actions/checkout@v4
8585

8686
- name: "Install requirements"
8787
run: pip install -r requirements/requirements_build.txt

.github/workflows/ci_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
name: "Style Check"
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848

4949
- name: "Setup Python"
5050
uses: actions/[email protected]
@@ -61,7 +61,7 @@ jobs:
6161
name: "Build linux1 wheel"
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565

6666
- name: "Install requirements"
6767
run: pip install -r requirements/requirements_build.txt

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
name: "Documentation"
6060
runs-on: windows-latest
6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363

6464
- name: "Set licensing if necessary"
6565
if: inputs.ANSYS_VERSION > 231

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
os: ["windows-latest", "ubuntu-latest"]
6363

6464
steps:
65-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@v4
6666

6767
- name: "Set licensing if necessary"
6868
if: inputs.ANSYS_VERSION > 231

.github/workflows/examples_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
os: ["ubuntu-latest"]
6666

6767
steps:
68-
- uses: actions/checkout@v3
68+
- uses: actions/checkout@v4
6969

7070
- name: "Setup Python"
7171
uses: actions/[email protected]

.github/workflows/pydpf-post.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
python-version: ["3.9"]
6060

6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363

6464
- name: "Set licensing if necessary"
6565
if: inputs.ANSYS_VERSION > 231
@@ -153,13 +153,15 @@ jobs:
153153
PACKAGE_NAME: ansys-dpf-post
154154
working-directory: pydpf-post/src
155155
if: inputs.test_docstrings == 'true'
156+
timeout-minutes: 10
156157

157158
- name: "Test API"
158159
shell: bash
159160
working-directory: pydpf-post/tests
160161
run: |
161162
pytest $DEBUG --reruns 2 .
162163
if: always()
164+
timeout-minutes: 20
163165

164166
- name: "Kill all servers"
165167
uses: ansys/pydpf-actions/[email protected]

.github/workflows/releaser.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
needs: get_latest_tag
4848
steps:
4949
- name: "Download Release Assets"
50-
uses: robinraju/release-downloader@v1.8
50+
uses: robinraju/release-downloader@v1.9
5151
with:
5252
tag: ${{ github.event.inputs.release_tag || needs.get_latest_tag.outputs.version }}
5353
fileName: "*.whl"
@@ -75,21 +75,21 @@ jobs:
7575
with:
7676
file: HTML-doc-ansys-dpf-core.zip
7777
token: ${{ secrets.GITHUB_TOKEN }}
78-
version: tags/${{ github.event.inputs.release_tag || needs.get_latest_tag.outputs.version }}
78+
version: ${{ github.event.inputs.release_tag && format('tags/{0}', github.event.inputs.release_tag) || format('tags/{0}', needs.get_latest_tag.outputs.version) }}
7979

8080
- name: "List downloaded assets"
8181
shell: bash
8282
run: |
8383
ls
8484
8585
- name: "Upload artifact"
86-
uses: actions/upload-artifact@v3
86+
uses: actions/upload-artifact@v4
8787
with:
8888
name: HTML-doc-ansys-dpf-core.zip
8989
path: HTML-doc-ansys-dpf-core.zip
9090

9191
- name: "Deploy the stable documentation"
92-
uses: ansys/actions/doc-deploy-stable@v4
92+
uses: ansys/actions/doc-deploy-stable@v5
9393
with:
9494
cname: ${{ env.DOCUMENTATION_CNAME }}
9595
token: ${{ secrets.GITHUB_TOKEN }}
@@ -121,7 +121,7 @@ jobs:
121121
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
122122
123123
- name: "Deploy the latest documentation index"
124-
uses: ansys/actions/doc-deploy-index@v4
124+
uses: ansys/actions/doc-deploy-index@v5
125125
with:
126126
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
127127
index-name: pydpf-core-v${{ env.VERSION_MEILI }}

.github/workflows/test_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
os: ["ubuntu-latest"]
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848

4949
- name: "Setup Python"
5050
uses: actions/[email protected]

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
os: ["windows-latest", "ubuntu-latest"]
101101

102102
steps:
103-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
104104

105105
- name: "Set licensing if necessary"
106106
if: inputs.ANSYS_VERSION > 231

0 commit comments

Comments
 (0)