Skip to content

Commit

Permalink
CI: Add test ironpython job
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Feb 29, 2024
1 parent d0c57f0 commit 0534859
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,36 @@ jobs:
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

# # =================================================================================================
# # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# # =================================================================================================

test-ironpython-windows:
name: Testing and coverage (Windows)
needs: [smoke-tests]
runs-on: [ self-hosted, Windows, pyaedt ]
steps:
steps:
- uses: actions/checkout@v4

- name: Run Ironpython tests
timeout-minutes: 5
run: |
$processA = start-process 'cmd' -ArgumentList '/c .\_unittest_ironpython\run_unittests_batchmode.cmd' -PassThru
$processA.WaitForExit()
- name: Get log content
run: |
get-content .\_unittest_ironpython\pyaedt_unit_test_ironpython.log
- name: Check for errors
run: |
$test_errors_failures = Select-String -Path .\_unittest_ironpython\pyaedt_unit_test_ironpython.log -Pattern "TextTestResult errors="
if ($test_errors_failures -ne $null)
{
exit 1
}
# legacy-tests:
# name: Test dotnet
# runs-on: [ Windows, self-hosted, pyedb ]
Expand Down

0 comments on commit 0534859

Please sign in to comment.