Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2603962
Student version
Samuelopez-ansys Jul 15, 2026
8c352ca
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Jul 15, 2026
7c24b83
chore: adding changelog file 7918.fixed.md [dependabot-skip]
pyansys-ci-bot Jul 15, 2026
3a848b6
Student version
Samuelopez-ansys Jul 15, 2026
2a85972
Active sessions
Samuelopez-ansys Jul 15, 2026
dcb2185
Fixed port assignment
maxcapodi78 Jul 15, 2026
1f7b6cd
Assign port
Samuelopez-ansys Jul 15, 2026
68f7182
Fixed port assignment
maxcapodi78 Jul 15, 2026
394d8be
Assign port
Samuelopez-ansys Jul 15, 2026
3c63d24
Fixed port assignment
maxcapodi78 Jul 15, 2026
82be8b1
Fixed port assignment
maxcapodi78 Jul 15, 2026
0ee530f
Fixed port assignment
maxcapodi78 Jul 15, 2026
448dafe
Add unit test
Samuelopez-ansys Jul 16, 2026
e53bce6
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Jul 16, 2026
feeeb7b
Fix port None
Samuelopez-ansys Jul 16, 2026
41658c8
Fix issue with version
Samuelopez-ansys Jul 17, 2026
125d13a
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Jul 17, 2026
ed69209
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 10, 2026
8267faa
Apply suggestions from code review
Samuelopez-ansys Aug 10, 2026
ac65acb
Merge remote-tracking branch 'origin/fix/issue_7891' into fix/issue_7891
Samuelopez-ansys Aug 10, 2026
87b2ae8
Update docstring
Samuelopez-ansys Aug 10, 2026
6588e9d
Port set internally directly with __port
Samuelopez-ansys Aug 10, 2026
ca2b564
Split tests
Samuelopez-ansys Aug 10, 2026
b256d56
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 11, 2026
9496017
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 12, 2026
50b8deb
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 13, 2026
18b8e5b
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 21, 2026
0e78f9d
Skip EMIT tests
Samuelopez-ansys Aug 27, 2026
b43998d
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 27, 2026
fbec6df
Skip EMIT tests
Samuelopez-ansys Aug 27, 2026
910abe0
Skip EMIT tests
Samuelopez-ansys Aug 27, 2026
340ee8e
Apply suggestions from code review
Samuelopez-ansys Aug 27, 2026
005acd2
CHORE: Auto fixes from pre-commit hooks
pre-commit-ci[bot] Aug 27, 2026
0511768
Fix suggestions
Samuelopez-ansys Aug 27, 2026
dfafbd8
Fix issue
Samuelopez-ansys Aug 27, 2026
9e00d02
Fix patch
Samuelopez-ansys Aug 27, 2026
687904f
Merge branch 'main' into fix/issue_7891
Samuelopez-ansys Aug 27, 2026
39a7361
Fix patch
Samuelopez-ansys Aug 27, 2026
e05ac11
Fix patch
Samuelopez-ansys Aug 27, 2026
7df4ac9
Fix patch
Samuelopez-ansys Aug 27, 2026
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
121 changes: 60 additions & 61 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1161,66 +1161,66 @@ jobs:
# # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# # =================================================================================================

system-tests-emit-windows:
name: Test EMIT (windows)
needs: integration-tests
runs-on: [ self-hosted, Windows, pyaedt ]
steps:
- name: Install Git and checkout project
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

# NOTE: Our windows runners are impacted by nodejs/node#56645 so we cannot use astral-sh/setup-uv@v7
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ env.TESTS_VERSION }}

- name: Set up uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
with:
activate-environment: true
enable-cache: false
prune-cache: true
python-version: ${{ env.TESTS_VERSION }}


- name: Install pyaedt and tests dependencies
env:
TESTS_VERSION: ${{ env.TESTS_VERSION }}
run: |
uv sync --frozen --group tests --extra all

- name: Remove Ansys processes (if any)
shell: powershell
run: |
Get-Process | Where-Object {
$_.Path -like "*ansys inc*" -or $_.Path -like "*ansysem*"
} | ForEach-Object {
Write-Output "Killing $($_.Name) (PID: $($_.Id))"
Stop-Process -Id $_.Id -Force
}

- name: Run tests marked with 'emit'
env:
PYTHONMALLOC: malloc
PYTEST_ARGUMENTS: ${{ env.PYTEST_ARGUMENTS }}
run: |
$args = $env:PYTEST_ARGUMENTS -split ' '
pytest @args --timeout=600 -v -rA --color=yes tests/system/emit

- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
name: codecov-system-emit-tests-windows
files: ./coverage.xml
flags: windows_system_emit

- name: Upload pytest test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: pytest-emit-windows
path: junit/test-results.xml
# system-tests-emit-windows:
# name: Test EMIT (windows)
# needs: integration-tests
# runs-on: [ self-hosted, Windows, pyaedt ]
# steps:
# - name: Install Git and checkout project
# uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# with:
# persist-credentials: false
#
# # NOTE: Our windows runners are impacted by nodejs/node#56645 so we cannot use astral-sh/setup-uv@v7
# - name: Setup Python
# uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
# with:
# python-version: ${{ env.TESTS_VERSION }}
#
# - name: Set up uv
# uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
# with:
# activate-environment: true
# enable-cache: false
# prune-cache: true
# python-version: ${{ env.TESTS_VERSION }}
#
#
# - name: Install pyaedt and tests dependencies
# env:
# TESTS_VERSION: ${{ env.TESTS_VERSION }}
# run: |
# uv sync --frozen --group tests --extra all
#
# - name: Remove Ansys processes (if any)
# shell: powershell
# run: |
# Get-Process | Where-Object {
# $_.Path -like "*ansys inc*" -or $_.Path -like "*ansysem*"
# } | ForEach-Object {
# Write-Output "Killing $($_.Name) (PID: $($_.Id))"
# Stop-Process -Id $_.Id -Force
# }
#
# - name: Run tests marked with 'emit'
# env:
# PYTHONMALLOC: malloc
# PYTEST_ARGUMENTS: ${{ env.PYTEST_ARGUMENTS }}
# run: |
# $args = $env:PYTEST_ARGUMENTS -split ' '
# pytest @args --timeout=600 -v -rA --color=yes tests/system/emit
#
# - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
# with:
# name: codecov-system-emit-tests-windows
# files: ./coverage.xml
# flags: windows_system_emit
#
# - name: Upload pytest test results
# uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
# with:
# name: pytest-emit-windows
# path: junit/test-results.xml

package:
name: Package library
Expand All @@ -1237,7 +1237,6 @@ jobs:
system-tests-extensions-windows,
system-tests-extensions-linux,
system-tests-filter-windows,
system-tests-emit-windows,
doc-build]
runs-on: ubuntu-latest
permissions:
Expand Down
138 changes: 63 additions & 75 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1393,80 +1393,69 @@ jobs:
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# =================================================================================================

system-tests-emit-windows:
name: Test EMIT (windows)
needs: [integration-tests, analyze-changes]
if: github.event.pull_request.draft == false && needs.analyze-changes.outputs.skip_tests != 'true'
runs-on: [ self-hosted, Windows, pyaedt ]
steps:
- name: Install Git and checkout project
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ env.TESTS_VERSION }}

- name: Set up uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
with:
activate-environment: true
enable-cache: false
prune-cache: true
python-version: ${{ env.TESTS_VERSION }}

- name: Install pyaedt and tests dependencies
env:
TESTS_VERSION: ${{ env.TESTS_VERSION }}
run: |
uv sync --frozen --group tests --extra all

- name: Wait for master cache update
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-testmon') }}
uses: ./.github/actions/check-cache

- name: Restore testmondata cache
uses: ./.github/actions/testmon-cache
with:
testmon-datafile: ${{ env.TESTMON_DATAFILE }}
cache-key: ${{ env.TESTMON_CACHE_KEY_EMIT_WIN }}

- name: Remove Ansys processes (if any)
shell: powershell
run: |
Get-Process | Where-Object {
$_.Path -like "*ansys inc*" -or $_.Path -like "*ansysem*"
} | ForEach-Object {
Write-Output "Killing $($_.Name) (PID: $($_.Id))"
Stop-Process -Id $_.Id -Force
}

- name: Run tests marked with 'emit'
env:
PYTHONMALLOC: malloc
PYTEST_ARGUMENTS: ${{ env.PYTEST_ARGUMENTS }}
SKIP_EMIT_TESTS: 'true'
run: |
if ($env:SKIP_EMIT_TESTS -and ($env:SKIP_EMIT_TESTS.ToLower() -in @('1','true','yes'))) {
Write-Host 'SKIP_EMIT_TESTS set; skipping emit tests'
exit 0
}
$args = $env:PYTEST_ARGUMENTS -split ' '
pytest @args --timeout=600 -v -rA --color=yes tests/system/emit
$rc = $LASTEXITCODE
if ($rc -eq 5) {
Write-Host 'pytest collected no tests (exit code 5); treating as success'
exit 0
}
exit $rc

- name: Upload pytest test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: pytest-emit-windows
path: junit/test-results.xml
# system-tests-emit-windows:
# name: Test EMIT (windows)
# needs: [integration-tests, analyze-changes]
# if: github.event.pull_request.draft == false && needs.analyze-changes.outputs.skip_tests != 'true'
# runs-on: [ self-hosted, Windows, pyaedt ]
# steps:
# - name: Install Git and checkout project
# uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# with:
# persist-credentials: false
#
# - name: Setup Python
# uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
# with:
# python-version: ${{ env.TESTS_VERSION }}
#
# - name: Set up uv
# uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
# with:
# activate-environment: true
# enable-cache: false
# prune-cache: true
# python-version: ${{ env.TESTS_VERSION }}
#
# - name: Install pyaedt and tests dependencies
# env:
# TESTS_VERSION: ${{ env.TESTS_VERSION }}
# run: |
# uv sync --frozen --group tests --extra all
#
# - name: Wait for master cache update
# if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-testmon') }}
# uses: ./.github/actions/check-cache
#
# - name: Restore testmondata cache
# uses: ./.github/actions/testmon-cache
# with:
# testmon-datafile: ${{ env.TESTMON_DATAFILE }}
# cache-key: ${{ env.TESTMON_CACHE_KEY_EMIT_WIN }}
#
# - name: Remove Ansys processes (if any)
# shell: powershell
# run: |
# Get-Process | Where-Object {
# $_.Path -like "*ansys inc*" -or $_.Path -like "*ansysem*"
# } | ForEach-Object {
# Write-Output "Killing $($_.Name) (PID: $($_.Id))"
# Stop-Process -Id $_.Id -Force
# }
#
# - name: Run tests marked with 'emit'
# env:
# PYTHONMALLOC: malloc
# PYTEST_ARGUMENTS: ${{ env.PYTEST_ARGUMENTS }}
# run: |
# $args = $env:PYTEST_ARGUMENTS -split ' '
# pytest @args --timeout=600 -v -rA --color=yes tests/system/emit
#
# - name: Upload pytest test results
# uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
# with:
# name: pytest-emit-windows
# path: junit/test-results.xml

package:
name: Package library
Expand All @@ -1484,7 +1473,6 @@ jobs:
system-tests-extensions-windows,
system-tests-extensions-linux,
system-tests-filter-windows,
system-tests-emit-windows,
doc-build]
runs-on: ubuntu-latest
if: |
Expand Down
Loading
Loading