Skip to content

Commit

Permalink
Split script to run all demos to multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Jul 27, 2023
1 parent 621aadf commit ee430fd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/windows_full_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,19 @@ jobs:
run: |
C:\Users\runneradmin\openquake\Scripts\activate.ps1
# FIXME: why those different exports? (using the same as in run-demos.sh)
Get-ChildItem "D:\a\oq-engine\oq-engine\openquake\demos" -Recurse -Filter job.ini | ForEach-Object { oq engine --run $_.FullName --exports xml,hdf5 -p pointsource_distance=0 -r }
Get-ChildItem "D:\a\oq-engine\oq-engine\openquake\demos" -Recurse -Directory | ForEach-Object { $demoDir=$_.FullName; Get-ChildItem $_.FullName -Filter job_hazard.ini | ForEach-Object { oq engine --run $demoDir\job_hazard.ini --exports npz -p pointsource_distance=0; oq engine --run $demoDir\job_risk.ini --hc -1 } }
Write-Host "Run all demos having only job.ini"
$iniFilePaths = Get-ChildItem "D:\a\oq-engine\oq-engine\openquake\demos" -Recurse -Filter job.ini
foreach($iniFilePath in $iniFilePaths) {
oq engine --run $iniFilePath.FullName --exports xml,hdf5 -p pointsource_distance=0 -r
}
Write-Host "Run all demos having only job_hazard.ini and job_risk.ini"
$demoDirs = Get-ChildItem "D:\a\oq-engine\oq-engine\openquake\demos" -Recurse -Directory
foreach($demoDir in $demoDirs) {
$jobHazardPaths = Get-ChildItem $demoDir -Filter job_hazard.ini
foreach($jobHazardPath in $jobHazardPaths) {
oq engine --run $jobHazardPath.FullName --exports npz -p pointsource_distance=0; oq engine --run $demoDir.FullName\job_risk.ini --hc -1
}
}
- name: Run all engine tests
run: |
C:\Users\runneradmin\openquake\Scripts\activate.ps1
Expand Down

0 comments on commit ee430fd

Please sign in to comment.