Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Nov 22, 2023
1 parent 2154352 commit e5251da
Showing 1 changed file with 59 additions and 48 deletions.
107 changes: 59 additions & 48 deletions .github/workflows/test_pyaedt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,52 +74,64 @@ jobs:
.\.venv\Scripts\Activate.ps1
python -m pip install external/pyaedt[tests]
- name: "Move some tests"
run: |
New-Item -ItemType Directory -Name external/pyaedt/excluded_tests
Move-Item -Path "external\pyaedt\_unittest\test_00_EDB.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_00_Advanced_EDB.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_3dlayout_edb.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_configuration_files.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_Design.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_downloads.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_general_methods.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_GeometryOperators.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_pdf.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_report_file_parser.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_01_toolkit_icons.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_02_2D_modeler.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_02_3D_modeler.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_03_Materials.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_04_SBR.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_05_Mesh.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_06_MessageManager.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_07_Object3D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_08_Primitives3D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_09_Primitives2D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_09_VariableManager.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_11_Setup.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_12_1_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_12_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_13_LoadAEDTFile.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_14_AedtLogger.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_15_ibs_reader.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_16_3d_stackup.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_20_HFSS.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_21_Circuit.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_22_Circuit_DynamicLink.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_27_Maxwell2D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_28_Maxwell3D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_29_Mechanical.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_30_Q2D.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_32_RMxprt.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_34_TwinBuilder.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_35_MaxwellCircuit.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_36_Q2D_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
Move-Item -Path "external\pyaedt\_unittest\test_37_Genetic_Algorithm.py" -Destination external\pyaedt\excluded_tests\
Get-ChildItem -Path "external\pyaedt\_unittest"
- name: 'Pyaedt tests'
# - name: "Move some tests"
# run: |
# New-Item -ItemType Directory -Name external/pyaedt/excluded_tests
# Move-Item -Path "external\pyaedt\_unittest\test_00_EDB.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_00_Advanced_EDB.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_3dlayout_edb.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_configuration_files.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_Design.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_downloads.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_general_methods.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_GeometryOperators.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_pdf.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_report_file_parser.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_01_toolkit_icons.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_02_2D_modeler.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_02_3D_modeler.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_03_Materials.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_04_SBR.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_05_Mesh.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_06_MessageManager.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_07_Object3D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_08_Primitives3D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_09_Primitives2D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_09_VariableManager.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_11_Setup.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_12_1_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_12_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_13_LoadAEDTFile.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_14_AedtLogger.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_15_ibs_reader.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_16_3d_stackup.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_20_HFSS.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_21_Circuit.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_22_Circuit_DynamicLink.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_27_Maxwell2D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_28_Maxwell3D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_29_Mechanical.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_30_Q2D.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_32_RMxprt.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_34_TwinBuilder.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_35_MaxwellCircuit.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_36_Q2D_PostProcessing.py" -Destination external\pyaedt\excluded_tests\
# Move-Item -Path "external\pyaedt\_unittest\test_37_Genetic_Algorithm.py" -Destination external\pyaedt\excluded_tests\
# Get-ChildItem -Path "external\pyaedt\_unittest"

# - name: 'Pyaedt tests'
# uses: nick-fields/retry@v2
# with:
# max_attempts: 1
# retry_on: error
# timeout_minutes: 80
# command: |
# .\.venv\Scripts\Activate.ps1
# Set-Item -Path env:PYTHONMALLOC -Value "malloc"
# pytest --durations=50 -v --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml -k "not test_create_pdf and not test_16_read_hdm and not test_09c_import_into_report and not (plt or plot or Plot) and not test_42_post_processing_3d_layout" external/pyaedt/_unittest


- name: 'Pyaedt tests with plot'
uses: nick-fields/retry@v2
with:
max_attempts: 1
Expand All @@ -128,5 +140,4 @@ jobs:
command: |
.\.venv\Scripts\Activate.ps1
Set-Item -Path env:PYTHONMALLOC -Value "malloc"
pytest --durations=50 -v --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml -k "not test_create_pdf and not test_16_read_hdm and not test_09c_import_into_report and not (plt or plot or Plot) and not test_42_post_processing_3d_layout" external/pyaedt/_unittest
pytest --durations=50 -v --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external/pyaedt/_unittest/test_12_1_PostProcessing.py

0 comments on commit e5251da

Please sign in to comment.