From abb501757b2733ed990b6ddd9641273175fe2327 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Thu, 21 Dec 2023 10:41:16 +0100 Subject: [PATCH] CI: retest all examples --- .github/workflows/ci_cd.yml | 2 +- .github/workflows/examples.yml | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d65f0434e8..2e21ed004f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -129,7 +129,7 @@ # name: "Check legacy examples" # needs: [legacy-tests] # runs-on: [ windows, pyedb, self-hosted ] -# env: +# env: # PYEDB_CI_NO_DISPLAY: '1' # steps: # - name: "Install Git and clone project" diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 0a031fdf3a..ea6c3e289e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -83,10 +83,8 @@ jobs: - name: Execute legacy pyaedt integration examples run: | . .venv\Scripts\Activate.ps1 - Write-Host "Executing pyaedt integration example 09_Configuration.py" - python examples/legacy/pyaedt_integration/09_Configuration.py - #Get-ChildItem -Path examples/legacy/pyaedt_integration -Filter *.py -File | ? { $_.Name -ne $excluded_example } | ForEach-Object { - # Write-Host "Executing pyaedt integration example $($_.FullName)" - # $time = Measure-Command {python $_.FullName} - # Write-Host "Time taken for example $($_.FullName): $($result.TotalSeconds) seconds" - #} + Get-ChildItem -Path examples/legacy/pyaedt_integration -Filter *.py -File | ? { $_.Name -ne $excluded_example } | ForEach-Object { + Write-Host "Executing pyaedt integration example $($_.FullName)" + $time = Measure-Command {python $_.FullName} + Write-Host "Time taken for example $($_.FullName): $($result.TotalSeconds) seconds" + }