From 458c36708b8ac65b26c8842430620caa9f0c3926 Mon Sep 17 00:00:00 2001 From: Prithwish Mukherjee <109645853+prmukherj@users.noreply.github.com> Date: Thu, 30 May 2024 19:15:18 +0530 Subject: [PATCH] Update CI for 251 fluent image. (#301) * Update CI for 251 fluent image. * Fix docker issue. * Update Makefile. * Update PyFluent version to 0.21.dev1 --- .github/workflows/ci_cd.yml | 6 +++++- .github/workflows/nightly-doc-build.yml | 5 +++-- .github/workflows/nightly-test-run.yml | 4 ++++ Makefile | 10 ++++++++++ pyproject.toml | 3 ++- 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 7001063b..de059b0e 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -65,6 +65,8 @@ jobs: version: 241 - image-tag: v24.2.0 version: 242 + - image-tag: v25.1.0 + version: 251 steps: - uses: actions/checkout@v4 @@ -111,6 +113,8 @@ jobs: version: 241 - image-tag: v24.2.0 version: 242 + - image-tag: v25.1.0 + version: 251 steps: - uses: actions/checkout@v4 @@ -145,7 +149,7 @@ jobs: needs: [docs-style] runs-on: [self-hosted, pyfluent] env: - DOC_DEPLOYMENT_IMAGE_TAG: v24.1.0 + DOC_DEPLOYMENT_IMAGE_TAG: v24.2.0 DOCUMENTATION_CNAME: 'parametric.fluent.docs.pyansys.com' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/nightly-doc-build.yml b/.github/workflows/nightly-doc-build.yml index 668eb887..2bdb77c1 100644 --- a/.github/workflows/nightly-doc-build.yml +++ b/.github/workflows/nightly-doc-build.yml @@ -7,7 +7,8 @@ on: env: DOCUMENTATION_CNAME: 'parametric.fluent.docs.pyansys.com' - DOC_DEPLOYMENT_IMAGE_TAG: v24.1.0 + MAIN_PYTHON_VERSION: '3.9' + DOC_DEPLOYMENT_IMAGE_TAG: v24.2.0 ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} PYFLUENT_TIMEOUT_FORCE_EXIT: 5 PYFLUENT_LAUNCH_CONTAINER: 1 @@ -22,7 +23,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: ${{ env.MAIN_PYTHON_VERSION }} - name: Install pyfluent-parametric run: make install diff --git a/.github/workflows/nightly-test-run.yml b/.github/workflows/nightly-test-run.yml index 6d725126..a377b153 100644 --- a/.github/workflows/nightly-test-run.yml +++ b/.github/workflows/nightly-test-run.yml @@ -32,6 +32,8 @@ jobs: version: 241 - image-tag: v24.2.0 version: 242 + - image-tag: v25.1.0 + version: 251 steps: - uses: actions/checkout@v4 @@ -78,6 +80,8 @@ jobs: version: 241 - image-tag: v24.2.0 version: 242 + - image-tag: v25.1.0 + version: 251 steps: - uses: actions/checkout@v4 diff --git a/Makefile b/Makefile index 5c5778f8..4aac4dae 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,11 @@ unittest-242: @pip install -r requirements/requirements_tests.txt @pytest --fluent-version=24.2 +unittest-251: + @sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/* + @pip install -r requirements/requirements_tests.txt + @pytest --fluent-version=25.1 + unittest-self-hosted-222: @sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/* @pip install -r requirements/requirements_tests.txt @@ -66,6 +71,11 @@ unittest-self-hosted-242: @pip install -r requirements/requirements_tests.txt @pytest --fluent-version=24.2 --self-hosted +unittest-self-hosted-251: + @sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/* + @pip install -r requirements/requirements_tests.txt + @pytest --fluent-version=25.1 --self-hosted + build-doc: @sudo rm -rf /home/ansys/.local/share/ansys_fluent_core/examples/* @pip install -r requirements/requirements_doc.txt diff --git a/pyproject.toml b/pyproject.toml index dc7a238a..c1a510a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,8 +25,9 @@ packages = [ [tool.poetry.dependencies] python = ">=3.9,<4.0" importlib-metadata = {version = "^4.0", python = "<3.9"} -ansys-fluent-core = "~=0.21.dev0" +ansys-fluent-core = "~=0.21.dev1" h5py = ">=3.7.0" +requests = "==2.31.0" [tool.poetry.urls] "Documentation" = "https://parametric.fluent.docs.pyansys.com/"