From b23d42979e15d1847459088085431d3f5aaf1cb8 Mon Sep 17 00:00:00 2001 From: hpohekar Date: Mon, 4 Aug 2025 14:13:22 +0530 Subject: [PATCH 1/7] ci: Install dependencies first --- .github/workflows/execute-examples-weekly.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/execute-examples-weekly.yml b/.github/workflows/execute-examples-weekly.yml index 28c289580ea3..86ba53621110 100644 --- a/.github/workflows/execute-examples-weekly.yml +++ b/.github/workflows/execute-examples-weekly.yml @@ -60,15 +60,6 @@ jobs: username: ansys-bot password: ${{ secrets.GITHUB_TOKEN }} - - name: Pull Fluent docker image if not present - run: | - if ! docker image inspect fluent:${{ matrix.image-tag }} > /dev/null 2>&1; then - echo "Image not found locally, pulling..." - make docker-pull - else - echo "Image already exists locally, skipping pull." - fi - - name: Install Dependencies run: | sudo mkdir -p /home/ansys/Downloads/ansys_fluent_core_examples @@ -80,6 +71,15 @@ jobs: pip install ansys-fluent-visualization==0.21.dev1 pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas + - name: Pull Fluent docker image if not present + run: | + if ! docker image inspect fluent:${{ matrix.image-tag }} > /dev/null 2>&1; then + echo "Image not found locally, pulling..." + make docker-pull + else + echo "Image already exists locally, skipping pull." + fi + - name: Execute Examples run: | echo "Executing examples" From b7303bd7a7835d9af63208f589429013c159aa32 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 4 Aug 2025 08:45:14 +0000 Subject: [PATCH 2/7] chore: adding changelog file 4344.maintenance.md [dependabot-skip] --- doc/changelog.d/4344.maintenance.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/4344.maintenance.md diff --git a/doc/changelog.d/4344.maintenance.md b/doc/changelog.d/4344.maintenance.md new file mode 100644 index 000000000000..05ec9facb5ba --- /dev/null +++ b/doc/changelog.d/4344.maintenance.md @@ -0,0 +1 @@ +Install dependencies first [skip tests] \ No newline at end of file From 01cf19d67cc1c2ad9c56f52f31c50e82fb144913 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:24:20 +0000 Subject: [PATCH 3/7] chore: adding changelog file 4344.maintenance.md [dependabot-skip] --- doc/changelog.d/4344.maintenance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.d/4344.maintenance.md b/doc/changelog.d/4344.maintenance.md index 05ec9facb5ba..b0997d8275e9 100644 --- a/doc/changelog.d/4344.maintenance.md +++ b/doc/changelog.d/4344.maintenance.md @@ -1 +1 @@ -Install dependencies first [skip tests] \ No newline at end of file +Install dependencies first [skip tests] From bd796843abdbb2954297f1d654b36645ef8fb1c7 Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 12 Aug 2025 14:12:24 +0530 Subject: [PATCH 4/7] change install source --- .github/workflows/execute-examples-weekly.yml | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/execute-examples-weekly.yml b/.github/workflows/execute-examples-weekly.yml index 86ba53621110..5e8f13dde759 100644 --- a/.github/workflows/execute-examples-weekly.yml +++ b/.github/workflows/execute-examples-weekly.yml @@ -60,17 +60,6 @@ jobs: username: ansys-bot password: ${{ secrets.GITHUB_TOKEN }} - - name: Install Dependencies - run: | - sudo mkdir -p /home/ansys/Downloads/ansys_fluent_core_examples - sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples - sudo apt update - sudo apt install libegl1 - pip install ansys-fluent-core>=0.32.1 - pip install ansys-fluent-core[reader] - pip install ansys-fluent-visualization==0.21.dev1 - pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas - - name: Pull Fluent docker image if not present run: | if ! docker image inspect fluent:${{ matrix.image-tag }} > /dev/null 2>&1; then @@ -80,6 +69,22 @@ jobs: echo "Image already exists locally, skipping pull." fi + - name: Run API codegen + run: make api-codegen + env: + FLUENT_IMAGE_TAG: ${{ matrix.image-tag }} + + - name: Install Dependencies + run: | + sudo mkdir -p /home/ansys/Downloads/ansys_fluent_core_examples + sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples + sudo apt update + sudo apt install libegl1 + pip install -e . + pip install -e .[reader] + pip install ansys-fluent-visualization>=0.21.1 + pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas + - name: Execute Examples run: | echo "Executing examples" From 28f39bf3a3010e4ae07385f92941473b89ae5bc8 Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 12 Aug 2025 14:19:15 +0530 Subject: [PATCH 5/7] change install source 1 --- .github/workflows/execute-examples-weekly.yml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/execute-examples-weekly.yml b/.github/workflows/execute-examples-weekly.yml index 5e8f13dde759..4da958cc1f99 100644 --- a/.github/workflows/execute-examples-weekly.yml +++ b/.github/workflows/execute-examples-weekly.yml @@ -60,6 +60,17 @@ jobs: username: ansys-bot password: ${{ secrets.GITHUB_TOKEN }} + - name: Install Dependencies + run: | + sudo mkdir -p /home/ansys/Downloads/ansys_fluent_core_examples + sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples + sudo apt update + sudo apt install libegl1 + pip install -e . + pip install -e .[reader] + pip install ansys-fluent-visualization>=0.21.1 + pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas + - name: Pull Fluent docker image if not present run: | if ! docker image inspect fluent:${{ matrix.image-tag }} > /dev/null 2>&1; then @@ -74,17 +85,6 @@ jobs: env: FLUENT_IMAGE_TAG: ${{ matrix.image-tag }} - - name: Install Dependencies - run: | - sudo mkdir -p /home/ansys/Downloads/ansys_fluent_core_examples - sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples - sudo apt update - sudo apt install libegl1 - pip install -e . - pip install -e .[reader] - pip install ansys-fluent-visualization>=0.21.1 - pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas - - name: Execute Examples run: | echo "Executing examples" From 3f80c354d2759f7417309193594af9b70b9dd4fa Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 12 Aug 2025 15:57:49 +0530 Subject: [PATCH 6/7] change install source 2 --- .github/workflows/execute-examples-weekly.yml | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/.github/workflows/execute-examples-weekly.yml b/.github/workflows/execute-examples-weekly.yml index 4da958cc1f99..6eca4e379dce 100644 --- a/.github/workflows/execute-examples-weekly.yml +++ b/.github/workflows/execute-examples-weekly.yml @@ -45,20 +45,13 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - - name: Cache pip - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: Python-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }} - restore-keys: | - Python-${{ runner.os }}-${{ env.PYTHON_VERSION }} + - name: Install OS packages + run: | + sudo apt-get update + sudo apt-get install pandoc libegl1 make xvfb libfontconfig1 libxrender1 libxkbcommon-x11-0 -y - - name: Login to GitHub Container Registry - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 - with: - registry: ghcr.io - username: ansys-bot - password: ${{ secrets.GITHUB_TOKEN }} + - name: Install pyfluent + run: make install - name: Install Dependencies run: | @@ -66,25 +59,38 @@ jobs: sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples sudo apt update sudo apt install libegl1 - pip install -e . pip install -e .[reader] pip install ansys-fluent-visualization>=0.21.1 pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas - - name: Pull Fluent docker image if not present + - name: Retrieve PyFluent version run: | - if ! docker image inspect fluent:${{ matrix.image-tag }} > /dev/null 2>&1; then - echo "Image not found locally, pulling..." - make docker-pull - else - echo "Image already exists locally, skipping pull." - fi + echo "PYFLUENT_VERSION=$(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)" >> $GITHUB_OUTPUT + echo "PYFLUENT version is: $(python -c "from ansys.fluent.core import __version__; print(); print(__version__)" | tail -1)" + id: version + + - name: Login to GitHub Container Registry + uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + with: + registry: ghcr.io + username: ansys-bot + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pull Fluent docker image + run: make docker-pull + env: + FLUENT_IMAGE_TAG: ${{ matrix.image-tag }} - name: Run API codegen run: make api-codegen env: FLUENT_IMAGE_TAG: ${{ matrix.image-tag }} + - name: Install again after codegen + run: | + rm -rf dist + make install > /dev/null + - name: Execute Examples run: | echo "Executing examples" From a92fdb65e1a882d149b4a1018877e9742e8e80d4 Mon Sep 17 00:00:00 2001 From: hpohekar Date: Tue, 12 Aug 2025 16:05:54 +0530 Subject: [PATCH 7/7] change install source 3 --- .github/workflows/execute-examples-weekly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/execute-examples-weekly.yml b/.github/workflows/execute-examples-weekly.yml index 6eca4e379dce..a98aa2fcd069 100644 --- a/.github/workflows/execute-examples-weekly.yml +++ b/.github/workflows/execute-examples-weekly.yml @@ -59,7 +59,7 @@ jobs: sudo chmod a+rwx /home/ansys/Downloads/ansys_fluent_core_examples sudo apt update sudo apt install libegl1 - pip install -e .[reader] + pip install ansys-fluent-core[reader] pip install ansys-fluent-visualization>=0.21.1 pip install xgboost scikit-learn tensorflow seaborn plotly numpy pandas