Skip to content

Commit

Permalink
CHORE: Switch to AEDT 2024.2 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys authored Aug 21, 2024
1 parent 8dbcbc5 commit 4781079
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
runs-on: [self-hosted, pyaedt, toolkits, Linux]
needs: [ smoke-tests ]
env:
ANSYSEM_ROOT241: '/ansys_inc/AnsysEM/v241/Linux64'
ANSYSEM_ROOT242: '/ansys_inc/AnsysEM/v242/Linux64'
ANS_NODEPCHECK: '1'
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -260,35 +260,35 @@ jobs:
- name: Test AEDT Common API
timeout-minutes: 5
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT241 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT241 }}/Delcross:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT242 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT242 }}/Delcross:$LD_LIBRARY_PATH
source .venv_linux/bin/activate
pytest -v -m aedt_common_api
- name: Test Common API
timeout-minutes: 5
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT241 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT241 }}/Delcross:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT242 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT242 }}/Delcross:$LD_LIBRARY_PATH
source .venv_linux/bin/activate
pytest -v -m common_api
- name: Test EDB API
timeout-minutes: 5
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT241 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT241 }}/Delcross:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT242 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT242 }}/Delcross:$LD_LIBRARY_PATH
source .venv_linux/bin/activate
pytest -v -m edb_api
- name: Test REST API
timeout-minutes: 5
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT241 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT241 }}/Delcross:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT242 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT242 }}/Delcross:$LD_LIBRARY_PATH
source .venv_linux/bin/activate
pytest -v -m rest_api
- name: Test utils
timeout-minutes: 5
run: |
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT241 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT241 }}/Delcross:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${{ env.ANSYSEM_ROOT242 }}/common/mono/Linux64/lib64:${{ env.ANSYSEM_ROOT242 }}/Delcross:$LD_LIBRARY_PATH
source .venv_linux/bin/activate
pytest -v -m utils
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/aedt/toolkits/common/backend/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Common:
>>> from ansys.aedt.toolkits.common.backend.api import Common
>>> toolkit_api = Common()
>>> toolkit_properties = toolkit_api.get_properties()
>>> new_properties = {"aedt_version": "2024.1"}
>>> new_properties = {"aedt_version": "2024.2"}
>>> toolkit_api.set_properties(new_properties)
>>> new_properties = toolkit_api.get_properties()
"""
Expand Down Expand Up @@ -213,7 +213,7 @@ def installed_aedt_version() -> List:
>>> from ansys.aedt.toolkits.common.backend.api import Common
>>> toolkit_api = Common()
>>> toolkit_api.installed_aedt_version()
["2023.2", "2024.1"]
["2023.2", "2024.1", "2024.2"]
"""

# Detect existing AEDT installation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aedt_version= "2024.1"
aedt_version= "2024.2"
non_graphical= true
active_project= ""
active_design= ""
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/aedt/toolkits/common/backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class CommonProperties(BaseModel):
"""Stores common AEDT properties."""

aedt_version: str = "2024.1"
aedt_version: str = "2024.2"
non_graphical: bool = False
active_project: str = ""
active_design: str = ""
Expand Down
4 changes: 2 additions & 2 deletions tests/backend/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
The default configuration can be changed by placing a file called local_config.json in the same
directory as this module. An example of the contents of local_config.json
{
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": false,
"use_grpc": true
}
Expand All @@ -30,7 +30,7 @@
import pytest

DEFAULT_CONFIG = {
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": True,
"use_grpc": True,
"debug": False
Expand Down
2 changes: 1 addition & 1 deletion tests/backend/tests_aedt_api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
An example of the contents of local_config.json:
{
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": false,
"use_grpc": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/backend/tests_common_api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
An example of the contents of local_config.json:
{
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": false,
"use_grpc": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/backend/tests_edb_api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
An example of the contents of local_config.json:
{
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": false,
"use_grpc": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/backend/tests_rest_api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
An example of the contents of local_config.json:
{
"desktop_version": "2024.1",
"desktop_version": "2024.2",
"non_graphical": false,
"use_grpc": true
}
Expand Down

0 comments on commit 4781079

Please sign in to comment.