Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 42 additions & 66 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
MAIN_PYTHON_VERSION: '3.10'
MAIN_PYTHON_VERSION: '3.13'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we jump to 3.13?

PACKAGE_NAME: 'PyAEDT'
DOCUMENTATION_CNAME: 'aedt.docs.pyansys.com'
ON_CI: True
Expand Down Expand Up @@ -237,14 +237,7 @@ jobs:
- name: Install pyaedt and tests dependencies
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'solvers'
env:
Expand Down Expand Up @@ -300,7 +293,7 @@ jobs:
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]
pip install .[tests] -U

- name: Run tests marked with 'solvers'
run: |
Expand Down Expand Up @@ -330,6 +323,9 @@ jobs:
needs: [integration-tests]
if: github.event.pull_request.draft == false
runs-on: [ self-hosted, Windows, pyaedt ]
env:
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -339,6 +335,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
python -m venv .venv
Expand All @@ -350,14 +349,7 @@ jobs:
- name: Install pyaedt and tests dependencies
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'general'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -396,6 +388,8 @@ jobs:
env:
ANSYSEM_ROOT251: '/opt/AnsysEM/v251/AnsysEM'
ANS_NODEPCHECK: '1'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -405,6 +399,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
Expand All @@ -418,14 +415,7 @@ jobs:
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
source .venv/bin/activate
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'general'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -463,6 +453,8 @@ jobs:
runs-on: [ self-hosted, Windows, pyaedt ]
env:
MPLBACKEND: 'Agg'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -472,6 +464,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
python -m venv .venv
Expand All @@ -483,14 +478,7 @@ jobs:
- name: Install pyaedt and tests dependencies
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'visualization'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -530,6 +518,8 @@ jobs:
ANSYSEM_ROOT251: '/opt/AnsysEM/v251/AnsysEM'
ANS_NODEPCHECK: '1'
MPLBACKEND: 'Agg'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -539,6 +529,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
Expand All @@ -552,14 +545,7 @@ jobs:
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
source .venv/bin/activate
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'visualization'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -594,6 +580,9 @@ jobs:
needs: [integration-tests]
if: github.event.pull_request.draft == false
runs-on: [ self-hosted, Windows, pyaedt ]
env:
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -603,6 +592,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
python -m venv .venv
Expand All @@ -614,14 +606,7 @@ jobs:
- name: Install pyaedt and tests dependencies
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'extensions'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -660,6 +645,8 @@ jobs:
env:
ANSYSEM_ROOT251: '/opt/AnsysEM/v251/AnsysEM'
ANS_NODEPCHECK: '1'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -678,18 +665,14 @@ jobs:
python -m pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org wheel setuptools -U
python -c "import sys; print(sys.executable)"

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Install pyaedt and tests dependencies
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
source .venv/bin/activate
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: "Install X Virtual Frame Buffer"
run: |
Expand Down Expand Up @@ -749,14 +732,7 @@ jobs:
- name: Install pyaedt and tests dependencies
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1
pip install .[tests] -U

- name: Run tests marked with 'filter_solutions'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down
44 changes: 19 additions & 25 deletions .github/workflows/manual_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
name: Testing solvers and coverage (Windows)
if: github.event.inputs.test-solvers-windows == 'yes'
runs-on: [ self-hosted, Windows, pyaedt ]
env:
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -51,6 +54,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
python -m venv .venv
Expand All @@ -63,14 +69,6 @@ jobs:
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]
pip install pytest-azurepipelines

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1

- name: Run tests marked with 'solvers'
env:
Expand Down Expand Up @@ -99,6 +97,8 @@ jobs:
env:
ANSYSEM_ROOT251: '/opt/AnsysEM/v251/AnsysEM'
ANS_NODEPCHECK: '1'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -122,7 +122,6 @@ jobs:
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]
pip install pytest-azurepipelines

- name: Run tests marked with 'solvers'
run: |
Expand All @@ -147,6 +146,9 @@ jobs:
name: Testing general and coverage (Windows)
if: github.event.inputs.test-general-windows == 'yes'
runs-on: [ self-hosted, Windows, pyaedt ]
env:
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -156,6 +158,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
python -m venv .venv
Expand All @@ -168,14 +173,6 @@ jobs:
run: |
.venv\Scripts\Activate.ps1
pip install .[tests]
pip install pytest-azurepipelines

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
.venv\Scripts\Activate.ps1
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1

- name: Run tests marked with 'general'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down Expand Up @@ -209,6 +206,8 @@ jobs:
env:
ANSYSEM_ROOT251: '/opt/AnsysEM/v251/AnsysEM'
ANS_NODEPCHECK: '1'
PYVISTA_OFF_SCREEN: true
VTK_DEFAULT_RENDER_WINDOW: "osmesa"
steps:
- name: Install Git and checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -218,6 +217,9 @@ jobs:
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: Set up headless display
uses: pyvista/setup-headless-display-action@7d84ae825e6d9297a8e99bdbbae20d1b919a0b19 # v4.2

- name: Create virtual environment
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
Expand All @@ -232,14 +234,6 @@ jobs:
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT251 }}/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .venv/bin/activate
pip install .[tests]
pip install pytest-azurepipelines

- name: Install CI dependencies (e.g. vtk-osmesa)
run: |
source .venv/bin/activate
# Uninstall conflicting dependencies
pip uninstall --yes vtk
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==9.3.1

- name: Run tests marked with 'general'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
Expand Down
Loading
Loading