Skip to content

Commit 5ad1754

Browse files
authored
ci(release): pass --releasemode arg to flopy codegen tool (#2518)
1 parent 9f020a9 commit 5ad1754

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,13 @@ jobs:
288288

289289
- name: Update flopy
290290
if: inputs.run_tests == true && runner.os != 'Windows'
291-
working-directory: modflow6/autotest
292-
run: python update_flopy.py
291+
working-directory: modflow6
292+
run: |
293+
cmd="python -m flopy.mf6.utils.generate_classes --dfnpath doc/mf6io/mf6ivar/dfn"
294+
if [[ "${{ inputs.developmode }}" == "false" ]]; then
295+
cmd="$cmd --releasemode"
296+
fi
297+
eval "$cmd"
293298
294299
- name: Get executables
295300
if: inputs.run_tests == true && runner.os != 'Windows'
@@ -446,9 +451,14 @@ jobs:
446451
fi
447452
eval "$cmd"
448453
449-
- name: Update FloPy classes
450-
working-directory: modflow6/autotest
451-
run: python update_flopy.py
454+
- name: Update flopy
455+
working-directory: modflow6
456+
run: |
457+
cmd="python -m flopy.mf6.utils.generate_classes --dfnpath doc/mf6io/mf6ivar/dfn"
458+
if [[ "${{ inputs.developmode }}" == "false" ]]; then
459+
cmd="$cmd --releasemode"
460+
fi
461+
eval "$cmd"
452462
453463
- name: Get OS tag
454464
id: ostag

0 commit comments

Comments
 (0)