From 437c1f8aaeeb416d6961a7cb56ea3b9392f9103a Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 14:49:36 +0100 Subject: [PATCH 1/6] CI: Update self-hosted runner labels --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 117a1bba8..81b3508ec 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -78,7 +78,7 @@ jobs: doc-build: name: Build documentation - runs-on: [pyaedt, Windows] + runs-on: [self-hosted, Windows, pyaedt-examples] steps: - uses: actions/checkout@v4 From f3eb6f14da950bd9be024fe03da3440af7dc2290 Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 16:24:41 +0100 Subject: [PATCH 2/6] CI: Set main python version for windows --- .github/workflows/ci_cd.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 81b3508ec..ad1413d7b 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -13,6 +13,9 @@ on: env: MAIN_PYTHON_VERSION: '3.10' + # Some versions are not available in windows, so we need to specify which one to use on windows self-hosted runners + # see (https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json) + MAIN_PYTHON_VERSION_WINDOWS: '3.10.11' PACKAGE_NAME: 'pyaedt-examples' concurrency: @@ -82,10 +85,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ env.MAIN_PYTHON_VERSION }} + - name: Set up Python ${{ env.MAIN_PYTHON_VERSION_WINDOWS }} uses: actions/setup-python@v5 with: - python-version: ${{ env.MAIN_PYTHON_VERSION }} + python-version: ${{ env.MAIN_PYTHON_VERSION_WINDOWS }} - name: Create virtual environment run: | From 77767afc68188a20c68372d5babc37357e4843cf Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:17:00 +0100 Subject: [PATCH 3/6] CI: Try using self installed version Note: Seems like using a "valid" version was not enough as the action still fails when extracting the file. --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ad1413d7b..60b9c3e55 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -15,7 +15,7 @@ env: MAIN_PYTHON_VERSION: '3.10' # Some versions are not available in windows, so we need to specify which one to use on windows self-hosted runners # see (https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json) - MAIN_PYTHON_VERSION_WINDOWS: '3.10.11' + MAIN_PYTHON_VERSION_WINDOWS: '3.10.8' PACKAGE_NAME: 'pyaedt-examples' concurrency: From 5134ffdbc5a56937b46470cf825c73890b1d7111 Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:26:01 +0100 Subject: [PATCH 4/6] CI: Try using python version 3.9 in setup-python --- .github/workflows/ci_cd.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 60b9c3e55..ac36c6998 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -13,9 +13,8 @@ on: env: MAIN_PYTHON_VERSION: '3.10' - # Some versions are not available in windows, so we need to specify which one to use on windows self-hosted runners - # see (https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json) - MAIN_PYTHON_VERSION_WINDOWS: '3.10.8' + # TODO: For some reasons, 3.10 and 3.11 are not working. We should be aligned with the main python version. + MAIN_PYTHON_VERSION_WINDOWS: '3.9' PACKAGE_NAME: 'pyaedt-examples' concurrency: From 8cad78190af6a40986cdb6d14469b47f4e820c99 Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:28:30 +0100 Subject: [PATCH 5/6] WIP: Try using pyansys action --- .github/workflows/ci_cd.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ac36c6998..45dceccac 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -13,8 +13,6 @@ on: env: MAIN_PYTHON_VERSION: '3.10' - # TODO: For some reasons, 3.10 and 3.11 are not working. We should be aligned with the main python version. - MAIN_PYTHON_VERSION_WINDOWS: '3.9' PACKAGE_NAME: 'pyaedt-examples' concurrency: @@ -85,9 +83,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ env.MAIN_PYTHON_VERSION_WINDOWS }} - uses: actions/setup-python@v5 + uses: ansys/actions/_setup-python@v5 with: - python-version: ${{ env.MAIN_PYTHON_VERSION_WINDOWS }} + python-version: ${{ env.MAIN_PYTHON_VERSION }} + use-cache: false - name: Create virtual environment run: | From aad3d7281da32cac292e15b5b5d2ad116fc39678 Mon Sep 17 00:00:00 2001 From: SMoraisAnsys <146729917+SMoraisAnsys@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:39:21 +0100 Subject: [PATCH 6/6] WIP: Try downgrade setup-python version --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 45dceccac..9b3c0ff42 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -83,7 +83,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ env.MAIN_PYTHON_VERSION_WINDOWS }} - uses: ansys/actions/_setup-python@v5 + uses: actions/setup-python@v4 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} use-cache: false