Skip to content

Commit

Permalink
ci(parallel): run parallel build against serial tests (#1963)
Browse files Browse the repository at this point in the history
Follow up on #1960. Run the serial tests to make sure the parallel build doesn't break any serial functionality.
  • Loading branch information
wpbonelli authored Jul 26, 2024
1 parent 4a14870 commit 1fcccb7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/actions/test-par-win/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ runs:
- name: Convert unix2dos
shell: cmd
run: |
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6.bat" "%TEMP%\test_modflow6.bat"
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6_parallel.bat" "%TEMP%\test_modflow6_parallel.bat"
unix2dos -n "%GITHUB_WORKSPACE%\modflow6\.github\common\test_modflow6_serial.bat" "%TEMP%\test_modflow6_serial.bat"
- name: Test programs
if: github.ref_name != 'master'
shell: cmd
env:
REPOS_PATH: ${{ github.workspace }}
run: |
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6.bat"
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_parallel.bat"
- name: Test programs
if: github.ref_name == 'master'
Expand All @@ -39,4 +40,21 @@ runs:
REPOS_PATH: ${{ github.workspace }}
MARKERS: not developmode
run: |
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6.bat"
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_parallel.bat"
- name: Test programs (serial)
if: github.ref_name != 'master'
shell: cmd
env:
REPOS_PATH: ${{ github.workspace }}
run: |
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_serial.bat"
- name: Test programs (serial)
if: github.ref_name == 'master'
shell: cmd
env:
REPOS_PATH: ${{ github.workspace }}
MARKERS: not developmode
run: |
"%ONEAPI_ROOT%\setvars.bat" intel64 vs2022 && "%TEMP%\test_modflow6_serial.bat"
7 changes: 7 additions & 0 deletions .github/actions/test-par/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ runs:
env:
REPOS_PATH: ${{ github.workspace }}
run: pixi run autotest --parallel -k "test_par"

- name: Test programs (serial)
shell: bash
working-directory: modflow6
env:
REPOS_PATH: ${{ github.workspace }}
run: pixi run autotest
File renamed without changes.
4 changes: 4 additions & 0 deletions .github/common/test_modflow6_serial.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd "%GITHUB_WORKSPACE%\modflow6\autotest"
where libpetsc.dll
ldd ..\bin\mf6
pixi run autotest -m "%MARKERS%"
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,12 @@ jobs:
with:
path: modflow6

- name: Checkout test models
uses: actions/checkout@v4
with:
repository: MODFLOW-USGS/modflow6-testmodels
path: modflow6-testmodels

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
Expand Down

0 comments on commit 1fcccb7

Please sign in to comment.